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

Fresh installation fails #389

Closed
sonnius opened this issue Oct 13, 2021 · 7 comments
Closed

Fresh installation fails #389

sonnius opened this issue Oct 13, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@sonnius
Copy link

sonnius commented Oct 13, 2021

Expected Behavior

Instalation should work, following instructions verbatim, please note I use main as per the docs in git

Current Behavior

Error message

Possible Solution

Steps to Reproduce

[root@albert:~]# uname -a
Linux albert 5.14.9 #1-NixOS SMP Thu Sep 30 08:13:08 UTC 2021 aarch64 GNU/Linux


[root@albert:~]# nix-shell -p cachix --run "cachix use nrdxp"
Cachix configuration written to /etc/nixos/cachix.nix.
Binary cache nrdxp configuration written to /etc/nixos/cachix/nrdxp.nix.

To start using cachix add the following to your /etc/nixos/configuration.nix:

imports = [ ./cachix.nix ];

Then run:

$ sudo nixos-rebuild switch

[root@albert:~]# nix-shell https://github.com/divnix/devos/archive/main.tar.gz -A shell \
--run "bud get main"
fatal: not a git repository (or any of the parent directories): .git

@sonnius sonnius added the bug Something isn't working label Oct 13, 2021
@nrdxp
Copy link
Collaborator

nrdxp commented Oct 13, 2021

Not 100% what the issue is atm, but as a workaround you should be able to simply clone the devos repo, enter its devshell and install from there.

@sonnius
Copy link
Author

sonnius commented Oct 14, 2021

I've tried this and it does seem to work..

Thank you!

[root@alaska:~]# nix-shell -p cachix --run "cachix use nrdxp"
Cachix configuration written to /etc/nixos/cachix.nix.
Binary cache nrdxp configuration written to /etc/nixos/cachix/nrdxp.nix.

To start using cachix add the following to your /etc/nixos/configuration.nix:

    imports = [ ./cachix.nix ];

Then run:

    $ sudo nixos-rebuild switch

[root@alaska:~]# git clone https://github.com/divnix/devos.git
Cloning into 'devos'...
remote: Enumerating objects: 6678, done.
remote: Counting objects: 100% (1917/1917), done.
remote: Compressing objects: 100% (860/860), done.
remote: Total 6678 (delta 1185), reused 1586 (delta 1027), pack-reused 4761
Receiving objects: 100% (6678/6678), 3.64 MiB | 4.58 MiB/s, done.
Resolving deltas: 100% (3722/3722), done.

[root@alaska:~]# cd devos/

[root@alaska:~/devos]# nix-shell
[git.hooks] found updates
'/root/devos/.git/hooks/pre-commit' -> '/nix/store/nj2kd94sqi23kra85mbd7sxpxnwj60pz-pre-commit/bin/pre-commit'
[git.hooks] done
🔨 Welcome to nixos

[devos]

  agenix
  bud                  - Your highly customizable system ctl
  cachix               - Command line client for Nix binary cache hosting https://cachix.org
  deploy-rs            - A Simple multi-profile Nix-flake deploy tool
  nix
  nvfetcher            - Generate nix sources expr for the latest version of packages

[docs]

  mdbook               - Create books from MarkDown

[general commands]

  menu                 - prints this menu

[linter]

  editorconfig-checker - A tool to verify that your files are in harmony with your .editorconfig
  nixpkgs-fmt          - Nix code formatter for nixpkgs

[nixos]# bud get main
[nixos]#

@sonnius sonnius closed this as completed Oct 14, 2021
@milahu
Copy link

milahu commented Oct 24, 2021

[root@albert:~]# nix-shell https://github.com/divnix/devos/archive/main.tar.gz -A shell
--run "bud get main"
fatal: not a git repository (or any of the parent directories): .git

same

problem is, main.tar.gz is no git repo, so it has no .git folder

we should fix the manual https://devos.divnix.com/start/index.html#get-the-template

@Pacman99
Copy link
Member

That looks to be a bug in bud, that it needs to be run in a git repo

@blaggacao
Copy link
Contributor

blaggacao commented Oct 25, 2021

Shouldn't we drop support for a get command? Do we really need to wrap git clone?!?

It makes things seem overly magic and fool newcomers over the fact that it's +- a simple, banal git clone.

@blaggacao
Copy link
Contributor

And this is not the first issue with this workflow that we've seen.

@Pacman99
Copy link
Member

👍 for dropping bud get support

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

5 participants