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

correct path to go flake template #360

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

hampgoodwin
Copy link
Contributor

Summary

I was following the zero to nix website and got to section 3 "From a local flake" https://zero-to-nix.com/start/nix-develop#flake. I selected go and used the command.
I believe the path to the go template referenced in the root flake.nix was incorrect. I cloned it, and tried to run

nix flake init -t "../github.com/hampgoodwin/zero-to-nix/flake.nix#go-dev"

and got

path '/home/hamp/github.com/hampgoodwin/zero-to-nix/flake.nix' does not contain a 'flake.nix', searching up
warning: Git tree '/home/hamp/github.com/hampgoodwin/zero-to-nix' is dirty
error: opening directory '/nix/store/40a8q71915rhvpy4crc6ifvzz8m5xlm0-source/nix/templates/dev/go': No such file or directory

With the change herein and running the same I was able to get a templated flake.

Copy link

netlify bot commented Aug 5, 2024

Deploy Preview for zero-to-nix ready!

Name Link
🔨 Latest commit 41ea766
🔍 Latest deploy log https://app.netlify.com/sites/zero-to-nix/deploys/66b144cb6d723200085d0419
😎 Deploy Preview https://deploy-preview-360--zero-to-nix.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@lucperkins lucperkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

@lucperkins lucperkins merged commit 504b297 into DeterminateSystems:main Aug 6, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants