-
Notifications
You must be signed in to change notification settings - Fork 11
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
Directories detected as lockfiles #1177
Labels
Comments
kylewillmon
added
bug
Something isn't working
low priority
Should be handled as time permits
labels
Aug 8, 2023
cd-work
added a commit
that referenced
this issue
Aug 17, 2023
This patch introduces a metadata check for lockfile and manifest paths to ensure that they're files instead of directories. Closes #1177.
cd-work
added a commit
that referenced
this issue
Aug 17, 2023
This patch introduces a metadata check for lockfile and manifest paths to ensure that they're files instead of directories. Closes #1177.
#1202 as a solution was discarded, since even checking for |
kylewillmon
added a commit
that referenced
this issue
Aug 18, 2023
As shown in #1177, some lockfile parsing errors result in poor error messages because the lockfile path is not always known. This patch adds the lockfile path as context on the error to ensure that it will be present in the error message. **Before** ``` > phylum parse ❗ Error: Is a directory (os error 21) ``` **After** ``` > phylum parse ❗ Error: could not parse lockfile: ./Cargo.lock Caused by: Is a directory (os error 21) ```
kylewillmon
added a commit
that referenced
this issue
Aug 18, 2023
As shown in #1177, some lockfile parsing errors result in poor error messages because the lockfile path is not always known. This patch adds the lockfile path as context on the error to ensure that it will be present in the error message. **Before** ``` > phylum parse ❗ Error: Is a directory (os error 21) ``` **After** ``` > phylum parse ❗ Error: could not parse lockfile: ./Cargo.lock Caused by: Is a directory (os error 21) ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lockfile detection believes that directories might be lockfiles.
How To Reproduce
This error message isn't very helpful....
The text was updated successfully, but these errors were encountered: