ChristopherBiscardi / advent-of-code

235 stars 47 forks source link

Running get-aoc-input.rs doesn't work #17

Open MikeWallaceDev opened 8 months ago

MikeWallaceDev commented 8 months ago

When trying to run the "just create day-01" command I got an error stating :

/usr/bin/env: ‘cargo +nightly -Zscript’: No such file or directory
/usr/bin/env: use -[v]S to pass options in shebang lines

Indeed, changing the line to

#!/usr/bin/env -S cargo +nightly -Zscript 

allowed it to work on my system.

ChristopherBiscardi commented 8 months ago

what operating system are you on? Some kind of linux is my guess from the error message.

This is definitely a drawback of the current approach at the moment while cargo-script is in nightly. I'm not sure how to address the issue in a cross-platform way at the moment. Perhaps just documenting it would be enough for now.

Paxol commented 8 months ago

Same issue here on arch linux, the proposed solution fixed the problem! Ty