Open abjoseph opened 3 months ago
Same here... any solution ?
I have the same problemn!
I am having exactly the same problem. Tried multiple things to make it work but I always got same error in publish phase.
EDIT: After struggling with this for over a day, I decided to create a docker file and publish using it.
Description
As can been seen in the logs below, the
[phases.setup]
stage clearly specifiesnixPkgs = ['dotnet-sdk_8']
the dotnet 8 sdk as the base for the build environment. However, further down, the logs shows that the outdated/old8.0.100-preview.5.23303.2
preview version of the sdk is being used.Coolify is a great platform and offers a lot of conveniences but it is ALSO painfully obscure and bit of a black box, can you shed some light on HOW it is resolving a nixpack version of
dotnet-sdk_8
to8.0.100-preview.5.23303.2
? Especially, when I look up dotnet-sdk_8 in the search.nixos.org packages repo and it shows a .NET SDK version of8.0.300
Where is the disconnect happening?
P.S - I also specified the
NIXPACKS_CSHARP_SDK_VERSION
env variable with a value of 8.0.300 and it still only uses the 8.0.100 preview version.Minimal Reproduction (if possible, example repository)
NIXPACKS_CSHARP_SDK_VERSION
env variable as mentioned above to 8.0.300dotnet publish src/WeatherApi --no-restore -c Release -o out
cd out && dotnet WeatherApi.dll --urls=http://0.0.0.0:3000
8.0.100-preview.5.23303.2
is used in the setup phase instead of the requested8.0.300
recent sdk version.Exception or Error
Version
v4.0.0-beta.306