-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consistently support specifying lockfiles when required names are not imposed by an external package manager #761
Comments
If I have a custom lockfile, I need to specify the absolute path. I don't know what that path is, so I will workaround github.com/containerbuildsystem/cachi2/issues/761 by using the default name. Signed-off-by: arewm <arewm@users.noreply.github.com>
TL;DR: you don't need any workaround, the name of the file is incorrect, should be Long version:
What other package managers that this is consistent with are you referring to? I'm asking because That said, while hosting the manifest files at a different relative location wrt/ to the application inside the repository may not be aligned with good/recommended practices encouraged by other well known and established pkg mgr ecosystems we support, I agree that once we support accepting a path, we need to be able to deal with both absolute and relative paths. @arewm can you generalize the issue subject & description such that this is more about being consistent in input path handling by the project in general (listing |
Right, I resolved the issue on my end by renaming the file. I'll nitpick that a workaround was necessary because my intended flow wasn't supported ... that workaround was just renaming the file. I didn't want to do that because the file name is not anything that is imposed by any other tooling that I was using (i.e. a package manager). I encountered this issue when updating the version of Cachi2 used as it looks like the file name used to be happily accepted. I was just thinking of pip as you said. I believe that this is because there is no requirement for lockfile naming imposed upon the dependency fetching tooling. For pip, any file name will work as you just pass that file to the install command. |
I am trying to prefetch a generic artifact with a given lockfile: https://github.com/konflux-ci/bazel-builder/blob/main/bazel6-ubi9/generic_lockfile.yaml
When I tried to specify the lockfile within the path as I can do with pip, I encountered an error.
I do not know the absolute path for this file as it is dependent upon the execution environment in which I am running cachi2.
If a lockfile naming convention is not imposed by an external package manager, Cachi2 should allow users to modify the name with relative (and potentially absolute if required) paths. This includes package managers like
generic
andpip
.The text was updated successfully, but these errors were encountered: