-
-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azure-functions-core-tools: 4.0.5455 -> 4.0.6594 #361077
Conversation
I'm getting the following error locally:
Made the pull request to make it reproducible and/or to see if it happens in the CI as well. |
I could reproduce that error:
My first instict was adding those libraries to buildInputs = [
openssl
zlib
icu
]; |
@NixOS/dotnet any idea about the aforementioned error? |
It seems like an issue with the way we detect what can be |
@GGG-KILLER I cherry picked the commit from your PR on top of this and unfortunately the build failed. Build log
(going to sleep now) |
Ok, got it to compile with the latest changes in #361450, but now there's an error on the
Adding the following line fixed it: dotnetFlags = [ "-p:TargetFramework=net8.0" ]; |
PR fixing the bug you were encountering has been merged, if you could rebase and check it it works. |
01c50bf
to
31d76ad
Compare
Updated the PR with |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, your changes LGTM and the package works with .NET 8!
A few improvements and nits, but feel free to ignore if you think it's too unrealted:
- run nixfmt on the package.nix
- drop
--replace
as it is deprecated
- --replace "CheckExitCode(\"/bin/bash" "CheckExitCode(\"${stdenv.shell}"
+ --replace-fail "CheckExitCode(\"/bin/bash" "CheckExitCode(\"${stdenv.shell}"
- remove
with lib;
frommeta
- version checking
+ doInstallCheck = true;
+ nativeInstallCheckInputs = [
+ versionCheckHook
+ ];
- set
meta.mainProgram
- add an update script
- remove
rec
next tobuildDotnetModule
src = fetchFromGitHub { | ||
owner = "Azure"; | ||
repo = "azure-functions-core-tools"; | ||
rev = version; | ||
sha256 = "sha256-Ip1m0/l0YWFosYfp8UeREg9DP5pnvRnXyAaAuch7Op4="; | ||
sha256 = "sha256-tUNiyvIjaIrdo6377IdXND7YgIk9zKkazDHV4kiWYa8="; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sha256 = "sha256-tUNiyvIjaIrdo6377IdXND7YgIk9zKkazDHV4kiWYa8="; | |
hash = "sha256-tUNiyvIjaIrdo6377IdXND7YgIk9zKkazDHV4kiWYa8="; |
@@ -6,12 +6,12 @@ | |||
dotnetCorePackages, | |||
}: | |||
let | |||
version = "4.0.5455"; | |||
version = "4.0.6594"; | |||
src = fetchFromGitHub { | |||
owner = "Azure"; | |||
repo = "azure-functions-core-tools"; | |||
rev = version; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #355973
rev = version; | |
tag = version; |
I wouldn't ignore the nixfmt point nor the The others would be tolerable if not done (but should be done ideally), however without |
This is all good stuff, but this is essentially a simple update PR, and I don't think it makes sense to block it. |
31d76ad
to
d748cb4
Compare
Fixed review comments. I had to left out version check as the software seems to report |
|
stdenv, | ||
fetchFromGitHub, | ||
buildDotnetModule, | ||
buildGoModule, | ||
dotnetCorePackages, | ||
versionCheckHook, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused, but its not worth blocking on this. Unfortunate that upstream doesn't properly update their version
versionCheckHook, |
Successfully created backport PR for |
Closes #360154
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.