-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
factorio: use real instead of sample in download help; warn about credentials in store #351555
Conversation
2a4b23e
to
2305d3d
Compare
2305d3d
to
b01332a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 on the ideas in this change, I haven't been able to test it myself yet though
pkgs/by-name/fa/factorio/package.nix
Outdated
]; | ||
system.extraDependencies = [ | ||
factorio.src | ||
]; | ||
''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
''; | |
''; |
this should make nixfmt CI pass I think
though, if you make other changes too, probably just want to run nixfmt yourself, here are the instructions from the failing check step:
pkgs/by-name/fa/factorio/package.nix: not formatted
Some new/changed Nix files are not properly formatted
Please go to the Nixpkgs root directory, run `nix-shell`, then:
nixfmt 'pkgs/by-name/fa/factorio/package.nix'
If you're having trouble, please ping [redacted, just in case @-pings work inside code blocks]
pkgs/by-name/fa/factorio/package.nix
Outdated
|
||
Note the ultimate "_" is replaced with "-" in the --name arg! | ||
Note the ultimate "_" is replaced with "-" in the --name arg! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's slightly awkward that we can no longer guarantee that this is true (or the only difference). I think it's acceptable to leave it as it is, but perhaps there's a rephrasing that is more accurate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps it doesn’t matter so much to call this out now that folks should be able to just copy-paste as-is rather than bother manually munging the names.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I'm on board with getting rid of it entirely (though I'm not a maintainer or anything, so my opinion has no special weight :) )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed it.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely a good idea.
b01332a
to
f2c8cc4
Compare
Makes it easier for the user since they should no longer have to manually replace things. Remove the note about the name as it may no longer be true, and the user now has to care less since the values are more easily copy-pastable.
f2c8cc4
to
5c358db
Compare
Rebased and fixed nixfmt errors. |
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.