treewide: cleanup fetchFromGitLab default value#478670
treewide: cleanup fetchFromGitLab default value#478670SigmaSquadron merged 1 commit intoNixOS:masterfrom
Conversation
ba22f07 to
5906985
Compare
5906985 to
4d4022d
Compare
|
What does this improve? |
philiptaron
left a comment
There was a problem hiding this comment.
I would prefer to leave things as they are. GitLab.com is just one instance of a GitLab server.
|
we at least have |
dotlambda
left a comment
There was a problem hiding this comment.
The function is called fetchFromGitLab, not fetchFromGitlab.
4d4022d to
39c3c69
Compare
|
cc @gepbird @SigmaSquadron for similar work on #483216 |
There was a problem hiding this comment.
I think removing domain = "gitlab.com" from packages is good for consistency with other fetchFromGitLab calls that don't have it set and it's -1 lines.
Given other people's comment on this, I'm not a fan of adding the assertion. It may give a few out of tree packages an unexpected failure and a few minutes of work/frustration when bumping nixpkgs with no real benefits other than consistency. Breaking changes due to bigger refactors that clean up tech debt is welcome, but this is not really it.
I'm not strongly against it, overall I think the small breakage outweighs the tiny benefits.
|
I can convert assertion to warning, so it fails in nixpkgs ci but not in people config |
39c3c69 to
9cb271d
Compare
|
Done |
9cb271d to
732c450
Compare
|
@philiptaron: I think the changes look good now, it's just removing duplicate code. |
philiptaron
left a comment
There was a problem hiding this comment.
I'll go with the team
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.