cachix / devenv

Fast, Declarative, Reproducible, and Composable Developer Environments
https://devenv.sh
Apache License 2.0
3.71k stars 274 forks source link

Devenv installing older package version of Gitea #1304

Open bachirelkhoury opened 4 days ago

bachirelkhoury commented 4 days ago

Describe the bug devenv search gitea is showing gitea version 1.22.0 However when starting the shell with pkgs.gitea version 1.21.10 is getting installed instead.

To reproduce

Init the dev environment:

$ mkdir test-devenv && cd $_
$ devenv init
$ devenv search gitea

# Output
| pkgs.gitea | 1.22.0  | Git with a cup of tea  |

Add pkgs.gitea to devenv.nix

{ pkgs, lib, config, inputs, ... }:

{
  # https://devenv.sh/basics/
  env.GREET = "devenv";

  # https://devenv.sh/packages/
  packages = [ pkgs.git pkgs.gitea ];

  # https://devenv.sh/scripts/
  scripts.hello.exec = "echo hello from $GREET";

  enterShell = ''
    hello
    git --version
  '';

  # https://devenv.sh/tests/
  enterTest = ''
    echo "Running tests"
    git --version | grep "2.42.0"
  '';
}
$ devenv shell
$ gitea --version
# Output
Gitea version 1.21.10 built with go1.22.1

Version I tried on both macOS and Ubuntu same issue:

devenv 1.0.7 (aarch64-darwin) devenv 1.0.7 (x86_64-linux)

k3yss commented 2 days ago

This is because of the devenv-nixpkgs that we provide, which seems to be slowing becoming outdated. You can try switching to unstable channel to get the latest version.