FirelyTeam / firely-cql-sdk

BSD 3-Clause "New" or "Revised" License
30 stars 17 forks source link

Investigate if support to install the CQL Packager as a dotnet tool still works #572

Open baseTwo opened 1 month ago

baseTwo commented 1 month ago

According to online documentation one is supposed to easily install the CQL Packager via the dotnet tool installed like so:

dotnet tool install Hl7.Cql.Packager --global --prerelease

Investigate if this is still working. If not, it needs to be implemented. Also check that the documentation is still valid

baseTwo commented 1 month ago

Getting the following exception. Image

Found some documentation online : https://github.com/dotnet/interactive/issues/3319

Running the tool with verbose output Image

Listing Nuget sources Image

Update expired tokens in local GitHub settings https://github.com/settings/tokens for in my case, the 2nd source as shown above. Capture the token.

Run command to update the source with the new token.

 dotnet nuget update source Github_FirelyTeam --source https://nuget.pkg.github.com/FirelyTeam/index.json --username {your user name} --password ghp_{your token}

Run dotnet install tool again (important that --prerelease is specified!!) Image

and-hus commented 1 month ago

The process works for me smoothly, without any token update or change to sources. I have nuget.org configured as the only source: Screenshot4

Screenshot3

The --prerelease options is currently required, because no full release was published yet.

From your screenshots I see that you are installing v2.0.4-build-20240924-2 - which is not available on nuget.org. I assume your process is retrieving the package from github. That might be the reason, why you need to provide the token. Can you try on a system that has only nuget.org configured?