Giorgi / DuckDB.NET

Bindings and ADO.NET Provider for DuckDB
https://duckdb.net
MIT License
339 stars 61 forks source link

Can't download nuget packages #116

Closed jakobstanford closed 1 year ago

jakobstanford commented 1 year ago

Hi,

not sure if a bug, but I've been trying download the latest alpha version nuget packages from github. For example, from this link: https://github.com/Giorgi/DuckDB.NET/pkgs/nuget/DuckDB.NET.Data.Full

But on that page, I dont see any download link. After some research I figured that I can add github has package source in the Nuget package manager. (using the URL https://nuget.pkg.github.com/Giorgi/index.json ) but this URL asks me for authentication. Not sure if I need to be logged in to download a publicly available nuget package.

What am I missing?

Giorgi commented 1 year ago

You need to create a token and use it as a password as described in the docs. Did you try that?

jakobstanford commented 1 year ago

Thanks, I will give that a try.

Seddryck commented 1 year ago

According to my experience, GitHub package is an issue. I'm using appVeyor and if I want to use the GitHub token as a secret (encrypted), it's not working for pull requests (because it would be a potential security, someone pushing to your branch and displaying the non encrypted token). IMO would be more convenient to also push alpha to Nuget but your mileage may vary.

jakobstanford commented 1 year ago

Actually, it seems like the token expires after 30 days too. Is there a project specific setting to make nuget packages 'public'?

Giorgi commented 1 year ago

You can set the token lifetime when creating it.