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

Unable to devenv up on a fresh flake template install. #864

Closed
natecox opened this issue Nov 6, 2023 · 5 comments · Fixed by #874
Closed

Unable to devenv up on a fresh flake template install. #864

natecox opened this issue Nov 6, 2023 · 5 comments · Fixed by #874
Labels
bug Something isn't working

Comments

@natecox
Copy link

natecox commented Nov 6, 2023

Describe the bug
On a fresh install of devenv, I am unable to devenv up. I may be fundamentally misunderstanding the use pattern here and I would appreciate being pointed in the correct direction. Gist below contains my command log with outputs and the flake.nix generated by the template.

When I attempt to devenv up I get:
error: flake 'path:/Users/ncox/src/natecox/direnv_test' does not provide attribute 'packages.aarch64-darwin.devenv-up', 'legacyPackages.aarch64-darwin.devenv-up' or 'devenv-up'

Perhaps relevant, I'm on a MacBook Pro with an M1 chip, which is why it's looking for aarch64-darwin.

To reproduce
https://gist.github.com/natecox/d695aaf63908feaca99c9e9641268896

Version
devenv: 0.6.3

@natecox natecox added the bug Something isn't working label Nov 6, 2023
@natecox
Copy link
Author

natecox commented Nov 7, 2023

Update, the "flake.parts" instructions do seem to provide devenv up. I'm not actually sure what the difference is between flakes and flake parts, but when I change the template to the parts one I'm able to get everything working ¯_(ツ)_/¯.

@Dich0tomy
Copy link

Same situation for me. Additionally, the flake-parts template doesn't provide any .envrc, the ordinary flake one does.

@sandydoo
Copy link
Member

Duplicate of #756?

@natecox
Copy link
Author

natecox commented Nov 13, 2023

Yep, looks like a duplicate. I didn’t find that one when I went looking.

sandydoo added a commit that referenced this issue Nov 16, 2023
This is a quick-fix to a more complicated flake/flake-parts UX issue
that needs resolving. For now this replicates what flake-parts does.

Resolves #864.
@sandydoo
Copy link
Member

When I attempt to devenv up I get:
error: flake 'path:/Users/ncox/src/natecox/direnv_test' does not provide attribute 'packages.aarch64-darwin.devenv-up', 'legacyPackages.aarch64-darwin.devenv-up' or 'devenv-up'

I've updated the template with an interim fix. We'll try to create a unified story for flake integration in or after the 1.0 release.

I'm not actually sure what the difference is between flakes and flake parts

Flake Parts is an opinionated library for writing flakes. The goal is to make flakes more modular (with modules) and to improve the user experience of writing and maintaining flakes.

Additionally, the flake-parts template doesn't provide any .envrc, the ordinary flake one does.

Thanks! Fixed in #874.

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

Successfully merging a pull request may close this issue.

3 participants