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

The upgrade command from std TUI fails on the example flake for the hello package #357

Open
blakat360 opened this issue Oct 8, 2023 · 2 comments

Comments

@blakat360
Copy link

No description provided.

@whs-dot-hk
Copy link
Contributor

I see, it is expected? You have to use cargo new to create your rust project

@kolloch
Copy link

kolloch commented Oct 23, 2023

For me, pretty much all commands on packages except build fail due to quoting problems detected by shellcheck.

Attempted fix: #358

❯ std //hello/packages/hello:bundle
this derivation will be built:
nix-output-monitor error: DerivationReadError /nix/store/hqxv22vbvwy1nwwf6vp40i32sn37mpmk-source.drv: hGetContents: invalid argument (cannot decode byte sequence starting from 195)
  /nix/store/bdgmv51rwln9a9fcn0lz4flfwcnr8320-bundle.drv
bundle> building '/nix/store/bdgmv51rwln9a9fcn0lz4flfwcnr8320-bundle.drv'
bundle> 
bundle> In /nix/store/srzzp8mrqrb7f42klkxyj3v20jqap4id-bundle line 15:
bundle> nix bundle --bundler github:Ninlives/relocatable.nix --refresh $PRJ_ROOT#"x86_64-linux"."hello"."packages"."hello"
bundle>                                                                ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
bundle>                                                                                        ^-- SC2140 (warning): Word is of the form "A"B"C" (B indicated). Did you mean "ABC" or "A\"B\"C"?
bundle>                                                                                                ^-- SC2140 (warning): Word is of the form "A"B"C" (B indicated). Did you mean "ABC" or "A\"B\"C"?
bundle>                                                                                                           ^-- SC2140 (warning): Word is of the form "A"B"C" (B indicated). Did you mean "ABC" or "A\"B\"C"?
bundle> 
bundle> Did you mean: 
bundle> nix bundle --bundler github:Ninlives/relocatable.nix --refresh "$PRJ_ROOT"#"x86_64-linux"."hello"."packages"."hello"
bundle> 
bundle> For more information:
bundle>   https://www.shellcheck.net/wiki/SC2140 -- Word is of the form "A"B"C" (B in...
bundle>   https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
error: builder for '/nix/store/bdgmv51rwln9a9fcn0lz4flfwcnr8320-bundle.drv' failed with exit code 1;
       last 10 log lines:
       >                                                                                        ^-- SC2140 (warning): Word is of the form "A"B"C" (B indicated). Did you mean "ABC" or "A\"B\"C"?
       >                                                                                                ^-- SC2140 (warning): Word is of the form "A"B"C" (B indicated). Did you mean "ABC" or "A\"B\"C"?
       >                                                                                                           ^-- SC2140 (warning): Word is of the form "A"B"C" (B indicated). Did you mean "ABC" or "A\"B\"C"?
       >
       > Did you mean: 
       > nix bundle --bundler github:Ninlives/relocatable.nix --refresh "$PRJ_ROOT"#"x86_64-linux"."hello"."packages"."hello"
       >
       > For more information:
       >   https://www.shellcheck.net/wiki/SC2140 -- Word is of the form "A"B"C" (B in...
       >   https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
       For full logs, run 'nix log /nix/store/bdgmv51rwln9a9fcn0lz4flfwcnr8320-bundle.drv'.
┏━ 1 Errors: 
┃ error: builder for '/nix/store/bdgmv51rwln9a9fcn0lz4flfwcnr8320-bundle.drv' failed with exit code 1;
┃        last 10 log lines:
┃        >                                                                                        ^-- SC2140 (warning): Word is of the form "A"B"C" (B indicated). Did you mean "ABC" or…
┃        >                                                                                                ^-- SC2140 (warning): Word is of the form "A"B"C" (B indicated). Did you mean …
┃        >                                                                                                           ^-- SC2140 (warning): Word is of the form "A"B"C" (B indicated). Di…
┃        >
┃        > Did you mean: 
┃        > nix bundle --bundler github:Ninlives/relocatable.nix --refresh "$PRJ_ROOT"#"x86_64-linux"."hello"."packages"."hello"
┃        >
┃        > For more information:
┃        >   https://www.shellcheck.net/wiki/SC2140 -- Word is of the form "A"B"C" (B in...
┃        >   https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
┃        For full logs, run 'nix log /nix/store/bdgmv51rwln9a9fcn0lz4flfwcnr8320-bundle.drv'.
┣━ Dependency Graph:
┃ ⚠︎ bundle failed with exit code 1 after ⏱︎ 0s
┣━━━                                                  
┗━ ∑︎ ⚠︎ Exited after 1 build failures at 11:51:10 after 1s

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

No branches or pull requests

3 participants