CLI update command does not allow solutions or project files as path argument
chuseman opened this issue ยท 1 comments
๐ Bug Report
I'm unable to run nukeeper update
with a solution file as the path argument.
Expected behavior
According to nukeeper update --help
, the Path argument is:
The path to a .sln or project file, or to a directory containing a .NET solution/project. If none is specified, the current directory will be used.
So I'd expect that supplying a path to a solution or project file would update just that solution/project dependencies.
Reproduction steps
Invoke nukeeper update Project.sln
(assuming Project.sln
exists) and you'll get the error:
Path 'Project.sln' was not found
Configuration
Version: 0.35.0
Platform if applicable:
- ๐ ๏ธ NuKeeper CLI
- โจ GitHub
- ๐ค AzureDevops
- ๐ Bitbucket
- ๐ Gitlab
- ๐บ Gitea
- ๐ณ Docker
I believe PopulateSettings
is blocking it in LocalNuKeeperCommand
:
NuKeeper/NuKeeper/Commands/LocalNuKeeperCommand.cs
Lines 30 to 33 in 0d267f3
I've tried fixing that specific instance to check for either Directory.Exists()
or File.Exists()
but then it fails later on. I'm hoping somebody more familiar with the project can shine some light on this (is the documentation just wrong?)
FWIW, this also affects nukeeper inspect
but only when you don't supply other parameters (like -m 1
). That's likely a separate bug where the path is just discarded.