Inedo / pgscan

Dependency scanner for ProGet.
MIT License
11 stars 5 forks source link

Fixed missing dependentFeed/Url properties #3

Closed jpeirson closed 2 years ago

jpeirson commented 2 years ago

Fixes the issue mentioned here: https://forums.inedo.com/topic/3273/pgscan-not-sending-consumer-package-source

The --consumer-package-source arg was not being included in the REST request body.

I added the null-value handling code since it looks like the API will quietly reject adding the dependency if both properties are specified in the request. And the code is kind of clunky since .NET Core 3.x doesn't support per-property null handling.

jpeirson commented 2 years ago

I did some minimal testing with providing a feed name vs a source URL in pgscan, which at least worked for me.