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

301/302 redirect errors #1618

Closed
Ol1BoT opened this issue Nov 29, 2024 · 3 comments
Closed

301/302 redirect errors #1618

Ol1BoT opened this issue Nov 29, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Ol1BoT
Copy link

Ol1BoT commented Nov 29, 2024

Describe the bug
I updated my devenv version and removed the devenv.lock in order to be force update, the problem is that when the environment attempts to build, I get a host of 301/302 errors when devenv/nix attempts to download cachix and git-hooks packages.

direnv: using devenv
direnv: .envrc changed, reloading
warning: error:
       error: unable to download 'https://api.github.com/repos/cachix/devenv/commits/HEAD': Failed to open/read local data from file/application (26); retrying in 342 ms
warning: error:
       error: unable to download 'https://github.com/cachix/devenv/archive/51abcb75d471a215c800937d4e30dc765d305c6d.tar.gz': Failed to open/read local data from file/application (26); retrying in 340 ms
warning: error:
       error: unable to download 'https://github.com/cachix/devenv/archive/51abcb75d471a215c800937d4e30dc765d305c6d.tar.gz': HTTP error 302 (curl error: Failed to open/read local data from file/application); retrying in 579 ms
warning: error:
       error: unable to download 'https://github.com/cachix/devenv/archive/51abcb75d471a215c800937d4e30dc765d305c6d.tar.gz': HTTP error 302 (curl error: Failed to open/read local data from file/application); retrying in 1281 ms

To reproduce
co-workers haven't been able to reproduce.

devenv runs fine when I rollback and use the old devenv.lock file. the notable difference between the two is the original lock is using pre-commit-hooks vs git-hooks

Version

devenv: devenv 1.3.1 (aarch64-darwin)
nix: nix (Nix) 2.24.10

both devenv and nix are running latest versions. I've reinstalled both to no avail.

@Ol1BoT Ol1BoT added the bug Something isn't working label Nov 29, 2024
@Ol1BoT Ol1BoT changed the title Devenv - 301/302 redirect errors 301/302 redirect errors Nov 29, 2024
@domenkozar
Copy link
Member

That's a bug in curl, you need to downgrade nixpkgs.

@domenkozar
Copy link
Member

NixOS/nixpkgs#356114

@domenkozar domenkozar pinned this issue Nov 29, 2024
@Ol1BoT
Copy link
Author

Ol1BoT commented Nov 29, 2024

Perfect, thanks for your help 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants