Skip to content
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

Different versions available of package available for different system #2257

Open
jimmidyson opened this issue Sep 8, 2024 · 0 comments
Open
Labels
bug Something isn't working triage Issue needs triage

Comments

@jimmidyson
Copy link

What happened?

golangci-lint package was recently updated to build with go 1.23 in NixOS/nixpkgs@2bd2d99. When updating on my MacOS machine, I found that it was still building with older go version so went to https://www.jetify.com/devbox/docs/nixhub/resolve-a-package-version/ to see what was being found in the nixhub index.

What I found was that for different architectures, different nixpkgs commits are resolved, resulting in different package versions from nixpkgs being built depending on system. This surprised me.

From https://www.jetify.com/devbox/docs/nixhub/resolve-a-package-version/ searching for golangci-lint and latest, the revisions are different for aarch64-darwin (https://github.com/NixOS/nixpkgs/blob/5629520edecb69630a3f4d17d3d33fc96c13f6fe/pkgs/development/tools/golangci-lint/default.nix) and for aarch64-linux(https://github.com/NixOS/nixpkgs/blob/8b4061fd60ccc3b3f44b73faa7c983eacf7a6f7b/pkgs/development/tools/golangci-lint/default.nix).

The latter result contains the correct latest revision for all architectures, so I'm wondering there is a bug in the indexing process that's leading to this? I have seen similar behaviour before but this was the first time that I actually delved deeper to see what was going on.

{
  "name": "golangci-lint",
  "version": "1.60.3",
  "summary": "Fast linters Runner for Go",
  "systems": {
    "aarch64-darwin": {
      "flake_installable": {
        "ref": {
          "type": "github",
          "owner": "NixOS",
          "repo": "nixpkgs",
          "rev": "5629520edecb69630a3f4d17d3d33fc96c13f6fe"
        },
        "attr_path": "golangci-lint"
      },
      "last_updated": "2024-08-31T10:12:23Z",
      "outputs": [
        {
          "name": "out",
          "path": "/nix/store/7753srjlr5z62yk0jzfmjz07178l6gf9-golangci-lint-1.60.3",
          "default": true,
          "nar": "nar/010g4ai0kk1zzp5nc33aq610a2yb4yk7hqdxmdbiyyvmn2xrp1hh.nar.xz"
        }
      ]
    },
    "aarch64-linux": {
      "flake_installable": {
        "ref": {
          "type": "github",
          "owner": "NixOS",
          "repo": "nixpkgs",
          "rev": "8b4061fd60ccc3b3f44b73faa7c983eacf7a6f7b"
        },
        "attr_path": "golangci-lint"
      },
      "last_updated": "2024-09-03T13:22:53Z",
      "outputs": [
        {
          "name": "out",
          "path": "/nix/store/m6b3s4szkb8y8x6rh0h0j627n18r69bz-golangci-lint-1.60.3",
          "default": true,
          "nar": "nar/15b7ygxg7vvnfdhasigpy6q1agh5k2a6a2qxfgqfyananji4v060.nar.xz"
        }
      ]
    },
    "x86_64-darwin": {
      "flake_installable": {
        "ref": {
          "type": "github",
          "owner": "NixOS",
          "repo": "nixpkgs",
          "rev": "5629520edecb69630a3f4d17d3d33fc96c13f6fe"
        },
        "attr_path": "golangci-lint"
      },
      "last_updated": "2024-08-31T10:12:23Z",
      "outputs": [
        {
          "name": "out",
          "path": "/nix/store/281ibn0dx1d5bhrsghkhp0wkvsyf3c2s-golangci-lint-1.60.3",
          "default": true,
          "nar": "nar/0jycl8ifad83l22c6zp6yig07nmmz9g120dygqbdxiivlbar7sga.nar.xz"
        }
      ]
    },
    "x86_64-linux": {
      "flake_installable": {
        "ref": {
          "type": "github",
          "owner": "NixOS",
          "repo": "nixpkgs",
          "rev": "5629520edecb69630a3f4d17d3d33fc96c13f6fe"
        },
        "attr_path": "golangci-lint"
      },
      "last_updated": "2024-08-31T10:12:23Z",
      "outputs": [
        {
          "name": "out",
          "path": "/nix/store/ri5wa2f32x6lglv7065j2s21cr84asg3-golangci-lint-1.60.3",
          "default": true,
          "nar": "nar/0rvl50d6wy5fkfs9x0hgvw10w3467vczbclcksv65g6qzm4n1i2m.nar.xz"
        }
      ]
    }
  }
}

Steps to reproduce

No response

Command

No response

devbox.json

No response

Devbox version

0.12.0

Nix version

No response

What system does this bug occur on?

macOS (Apple Silicon)

Debug logs

No response

@jimmidyson jimmidyson added bug Something isn't working triage Issue needs triage labels Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Issue needs triage
Development

No branches or pull requests

1 participant