Closed abb-corpay closed 1 month ago
Thanks for the report!
May I know how are you building it? Are you using the nixpkgs
provided by the flake?
I can't reproduce it on my machine:
nix build . --no-link
returns no error.
Of cause!
I am using it for a devShell:
{
inputs = {
# NixPkgs (nixos-unstable)
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# Flake-utils
flake-utils.url = "github:numtide/flake-utils";
# talhelper
talhelper.url = "github:budimanjojo/talhelper";
};
outputs = {self, ...} @ inputs:
inputs.flake-utils.lib.eachDefaultSystem (
system: let
pkgs = inputs.nixpkgs.legacyPackages.${system};
in {
devShells.default = pkgs.mkShell {
packages = [
pkgs.age
pkgs.bashInteractive
pkgs.cilium-cli
pkgs.coreutils
pkgs.curl
pkgs.fluxcd
pkgs.gawk
pkgs.gnugrep
pkgs.go-task
pkgs.incus
pkgs.kubectl
pkgs.kustomize
pkgs.sops
inputs.talhelper.packages.x86_64-linux.default
pkgs.talosctl
pkgs.yq-go
];
};
}
);
}```
Weird, I just updated nixpkgs
to the latest version locally and it builds fine too. Have you tried doing nix flake update
?
Also, I don't know anything about the ldflag-patch like in your output above and I don't think I put any patch for the derivation.
Yeah, I did that:
❯ nix flake update
❯ nix build .#devShells.x86_64-linux.default
error: builder for '/nix/store/ax5di1cill14lmvbaksdldhvxbp7l8y7-go-task-3.39.2-go-modules.drv' failed with exit code 1;
last 10 log lines:
> Running phase: unpackPhase
> unpacking source archive /nix/store/w611p6wgzs5x0zvs68w6yzxzlv6kkdnq-source
> source root is source
> Running phase: patchPhase
> applying patch /nix/store/y5jgbbdi3jwpaidyq3yf9cn8spf0507q-fix-ldflags-version.patch
> patching file internal/version/version.go
> Reversed (or previously applied) patch detected! Assume -R? [n]
> Apply anyway? [n]
> Skipping patch.
> 1 out of 1 hunk ignored -- saving rejects to file internal/version/version.go.rej
For full logs, run 'nix log /nix/store/ax5di1cill14lmvbaksdldhvxbp7l8y7-go-task-3.39.2-go-modules.drv'.
error: 1 dependencies of derivation '/nix/store/ldgk6wl4m0nrp5648va3kvrn2w5a17j5-go-task-3.39.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/a6xdxqn0xmgrdx246h3mxp1s6gfs3mjk-nix-shell.drv' failed to build
Could this be something to do with version of Nix?
❯ nix --version
nix (Nix) 2.24.7
I just tried the flake.nix
you provided above. Seems like the error comes from go-task
package.
:facepalm: You are totally correct. This does not appear to have anything to do with talhelper. I was so focused on getting the new version of talhelper, that I did not read the output thoroughly. Sorry for the disturbance.
Thank you for a great tool.
After the release of 3.0.7, this error occurs when trying to install via the flake: