cachix / devenv

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

fresh install: "✨ devenv 1.0.3 is out of date" #1127

Closed mx00s closed 2 weeks ago

mx00s commented 3 weeks ago

I tried running the Getting Started directions and ran into a confusing message:

> sh <(curl -L https://nixos.org/nix/install) --no-daemon  # for WSL2 (Windows)
> nix-env -iA devenv -f https://github.com/NixOS/nixpkgs/tarball/nixpkgs-unstable
> git init demo && cd demo
> devenv init
> devenv test
...
✨ devenv 1.0.3 is out of date. Please update to 1.0.4: https://devenv.sh/getting-started/#installation
...

The update directions linked by the message are the exact ones I just followed to install devenv, so it's odd that it claims it's outdated.

According to https://github.com/NixOS/nixpkgs/blob/a0c9e3aee1000ac2bfb0e5b98c94c946a5d180a9/pkgs/by-name/de/devenv/package.nix#L32, the current version on nixpkgs-unstable is 1.0.3, the one I have.

This repository's releases show the more recent 1.0.4 is the latest as of ~16 hours ago. Apparently the nixpkgs-unstable just hasn't been updated yet.

To mitigate future user confusion, would it be worth ...?

  1. changing the install directions to depend directly on this repo's releases instead,
  2. using the latest version from the chosen installation source as the source of truth, and/or
  3. minimizing the duration between releases in this repo and bumping the version in nixpkgs-unstable
domenkozar commented 3 weeks ago

Hey @mx00s, nice to see you around here :wave:

The easiest to do right now is to bump .latest-version once nixpkgs-unstable hits, we could even automate this.

Thanks for bringing this up!