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

scripts: fix unpinnedNugetPackage... script #176

Merged

Conversation

webwarrior-ws
Copy link
Contributor

Use working dir instead of script's parent directory in unpinnedNugetPackageReferenceVersionsInProjects.fsx to search for projects as it is intended behavior.

@knocte
Copy link
Member

knocte commented Nov 5, 2024

I don't see any other scripts doing this, how can they be working?

@webwarrior-ws
Copy link
Contributor Author

Other scripts do use current directory, some also check script's parent dir.

@knocte
Copy link
Member

knocte commented Nov 5, 2024

Other scripts do use current directory,

Which ones?

@knocte
Copy link
Member

knocte commented Nov 5, 2024

Actually, this is the approach that needs to be used: abfde9a

@webwarrior-ws
Copy link
Contributor Author

I don't understand logic of PreferLessDeeplyNestedDir. We use current working dir, but if it has longer way to root use script's parent dir? Why would that be useful?

@knocte
Copy link
Member

knocte commented Nov 5, 2024

Because $SOMEPATH/externalRepo is always less nested than $SOMEPATH/externalRepo/conventions/scripts

Use working dir instead of script's parent directory in
unpinnedNugetPackageReferenceVersionsInProjects.fsx to
search for projects as it is intended behavior.
@webwarrior-ws webwarrior-ws force-pushed the fix-unpinned-nuget-package-dir branch from 6f8e0ed to ec4cb79 Compare November 5, 2024 10:34
@knocte knocte merged commit 92e1ef8 into nblockchain:master Nov 6, 2024
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants