Skip to content
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

Why does PSDepend Bootstrap-Nuget even if we're not using nuget dependencies #117

Open
gaelcolas opened this issue Jul 10, 2020 · 2 comments

Comments

@gaelcolas
Copy link
Contributor

I found that it always tries to download Nuget from the web even when Nuget is not used as a dependency... (i.e. when using PS Module dependencies).

I also don't see a way to configure PSDepend "not to do that".

Is there any reason I'm missing, or would you accept a PR to change that (ideally, a param would be good, but because it's at module load, I wonder how we could make this work?

@RamblingCookieMonster
Copy link
Owner

Yeah, totally should not do that if we can avoid it! Open to suggestions. Including it in the nuget dependency type? Environment variable (:shrug:)?

@gaelcolas
Copy link
Contributor Author

thanks for sanity check :)

I'll have a closer look at the code, but I'm not a fan of environment variables for that.

In the meantime, my hack is: Set-Alias 'nuget.exe' echo 🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants