Open OneCyrus opened 4 years ago
I get this error when trying to run against a project that has the nuget.config
file in a subdirectory. When I try it with another project which has that file in the root the it works as expected.
Looks like you can add a directory
to this bit:
source = Dependabot::Source.new(
provider: "azure",
repo: repo,
directory: "mysubdirectory"
)
I had the same error message, and the issue was that all files were filtered out by "valid_encoding?" condition in lib/dependabot/nuget/file_fetcher.rb. In my environment LANG environment variable wasn't defined and Ruby was defaulting to US-ASCII encoding. Setting LANG to "C.UTF-8" resolved the issue. It'd be great if dependabot logged skipped files.
I had the same error message, and the issue was that all files were filtered out by "valid_encoding?" condition in lib/dependabot/nuget/file_fetcher.rb. In my environment LANG environment variable wasn't defined and Ruby was defaulting to US-ASCII encoding. Setting LANG to "C.UTF-8" resolved the issue. It'd be great if dependabot logged skipped files.
Thank you so much for your comment, I was searching for hours why it would not detect my requirements.txt file (correct branch, correct directory). Turns out my predecessor saved it as UTF-16.
i get the following error. any idea where I could start to troubleshoot this?