devbox icon indicating copy to clipboard operation
devbox copied to clipboard

nixhub.io is outdated compared to search.nixos.org

Open moimael opened this issue 1 year ago • 32 comments

What happened?

We've been waiting for updates for some packages (uv) for a while now. Devbox can't find a more recent version than 0.6.14 (which is what we see here: https://www.nixhub.io/packages/uv) while we have 0.7.2 here: https://search.nixos.org/packages?channel=unstable&show=uv&from=0&size=50&sort=relevance&type=packages&query=uv

It seems like nixhub has been lagging behind for a while, and I'm unsure why.

Steps to reproduce

Command

No response

devbox.json


Devbox version

0.14.2

Nix version

No response

What system does this bug occur on?

macOS (Intel)

Debug logs

No response

moimael avatar May 05 '25 07:05 moimael

Having the same issue with e.g. https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/so/sops/package.nix . With Devbox, only version 3.10.1 is listed, whereas upstream was updated to 3.10.2 two weeks ago. Same for https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/go/go-task/package.nix . Upstream -> 3.43.2, in Devbox -> 3.41.0 .

choeffer avatar May 05 '25 07:05 choeffer

Having the same issues:


Version: 0.14.2 Platform: darwin_arm64 Commit: 71c2ca66bce2ba7b51e818f4908bee6f423962ed Commit Time: 2025-04-17T19:36:59Z Go Version: go1.24.0 Launcher: 0.2.2 % devbox global update Info: Already up-to-date git@latest 2.48.1 (Latest is 2.49.0) Info: Already up-to-date gnupg@latest 2.4.7 Info: Already up-to-date pinentry_mac@latest 1.1.1.1 Info: Already up-to-date go@latest 1.24.1 (Latest is 1.24.2) Info: Already up-to-date cloudflared@latest 2025.4.0 Info: Already up-to-date biome@latest 1.9.4 Info: Already up-to-date webdav@latest 5.7.4 Info: Already up-to-date nodejs_23@latest 23.11.0 Info: Already up-to-date gh@latest 2.69.0 (Latest is 2.72.0) Info: Already up-to-date cocoapods@latest 1.16.2 Info: Already up-to-date rclone@latest 1.69.1 Info: Already up-to-date zstd@latest 1.5.6 (Latest is 1.5.7) Info: Already up-to-date libjxl@latest 0.11.1 Info: Installing the following packages to the nix store: git@latest, gnupg@latest, pinentry_mac@latest, go@latest, cloudflared@latest, biome@latest, webdav@latest, nodejs_23@latest, gh@latest, cocoapods@latest, rclone@latest, zstd@latest, libjxl@latest ✓ Computed the Devbox environment. Warning: Your devbox environment may be out of date. Run refresh-global to update it. Info: Running "nix flake update"

MrAlex94 avatar May 06 '25 09:05 MrAlex94

I had the same issue

The PR to update nixpkgs was merged on 2025-03-29

The package became available at least on 2025-03-31 on search.nixos.org

I had to wait several weeks, at least until 2025-04-14 to be able to update with DevBox, i was checking every day or two

pinage404 avatar May 06 '25 18:05 pinage404

Is what you're observing the expected behavior introduced in devbox 14.1 w/ caching of NixPkgs for 30 days? https://github.com/jetify-com/devbox/pull/2576

deftdawg avatar May 28 '25 13:05 deftdawg

Is what you're observing the expected behavior introduced in devbox 14.1 w/ caching of NixPkgs for 30 days? #2576

AFAIU, #2576 was merged after what i observed

Furthermore, #2576 has changed the behavior of the command line

The current problem is present on nixhub.io

So i don't expect the two to be related

pinage404 avatar May 28 '25 21:05 pinage404

Same issue currently, a lot of packages on nixhub.io haven't been updated in more than a month. (uv, yarn, ...)

moimael avatar Sep 08 '25 11:09 moimael

Facing the same issue. Can anyone explain or reference the current process on how packages are made available on nixhub.io/devbox? If we have to wait several months until we can use the latest versions, we will probably not adopt devbox for now. If there is a way to contribute/update packages, we would be glad to contribute. I was not able to find any information related to this.

jsattler avatar Sep 16 '25 07:09 jsattler

@jsattler i second this, we already rely on devbox, so anything i can do to help bring nixhub up to date, i'm all ears (and hands). I assume that since nixhub is a proprietary thing there's not much we can do, but then at least i think it's worth exploring having a fallback or even an option for devbox to use a different index. As of now nixhub is a major bottleneck and it's unclear who's responsible for it or if it's even still alive.

miklschmidt avatar Sep 16 '25 10:09 miklschmidt

I'm having the same issue. All of our dependencies are now lagging behind the unstable branch of Nixpkgs by more than a month.

I've noticed some latency before, but never on this scale. I suspect that NixHub's synchronization mechanism is broken.

@Lagoja I'm sorry for the ping. I know it's rude, and I hate having to resort to it, but I think the situation is critical, and the issue might have flown by the board unnoticed.

vallahaye avatar Sep 17 '25 07:09 vallahaye

Good that I noticed this thread. I wanted to adopt devbox in my organization, but now I have second thoughts.

maciej-lech avatar Sep 17 '25 11:09 maciej-lech

@maciej-lech it's honestly been great for us, i'm not going back. We just need a fix for this issue, it shouldn't be a big deal, i reckon some CI/CD flow broke and nobody noticed. Even if it's not fixed soon, you can get around it with flakes.

miklschmidt avatar Sep 17 '25 13:09 miklschmidt

Same problem here. I've been waiting on updates on certain packages for a while now, especially security patches available upstream in nixpkgs-unstable but not available for fetching from devbox.

ThomasVitale avatar Sep 20 '25 13:09 ThomasVitale

Does anyone understand why devbox uses nixhub.io and not nixpkgs? I was always under the impression it was using nixpkgs as a source.

Anyway, the silence on this issue is deafening ☠️

pmyjavec avatar Sep 22 '25 21:09 pmyjavec

Devbox uses nixpkgs under the hood, you can see it in devbox.json, in the field "resolved": "github:NixOS/nixpkgs/648f70160c03151bc2121d179291337ad6bc564b#git-gamble",

At each commit of nixpkgs, it freezes every package at a specific version

To get a specific older version of some package, we have to pin nixpkgs to an older commit hash

I guess that nixhub.io allows associating the history of a package version with the history of associated commit hash of nixpkgs

pinage404 avatar Sep 22 '25 22:09 pinage404

@LucilleH @savil @Lagoja Sorry for the direct ping, but any chance of some help with this issue or an update as to what is going on?

jimmidyson avatar Sep 23 '25 08:09 jimmidyson

@gcurtis

LucilleH avatar Sep 24 '25 00:09 LucilleH

Hey all, apologies for the delay in resolving this issue. We've pushed some updates to Nixhub and resolved the issue with updating our index. Additionally, we've run a backfill job to update the missing packages. Nixhub and Devbox Search should now show an up to date list of package versions. For example: uv now shows versions up to 0.8.14: https://www.nixhub.io/packages/uv

Lagoja avatar Sep 24 '25 21:09 Lagoja

@Lagoja many thanks for taking care! Can we expect the packages on nixhub.io to be in sync with nixpkgs in the future? Or does the update rely on a manual sync process that someone needs to trigger from time to time?

jsattler avatar Sep 25 '25 05:09 jsattler

@jsattler the update relies on a daily indexing job, and we've made improvements to our infra to ensure that this job is more reliable. You should see daily updates of the package versions

Lagoja avatar Sep 25 '25 16:09 Lagoja

@Lagoja Is it expected that some packages are missing compared to nixos search? Like nodejs has none of the 22.x updates after 22.14 (which is problematic since it's an LTS version, and the latest is 22.20), only 23.x and 24.x while nixos search has nodejs_22 with version 22.19.

moimael avatar Sep 26 '25 09:09 moimael