nixpkgs/pkgs/build-support
Michael Weiss 2aadb9a53d
nix-prefetch-git: Run git-init with --initial-branch=master
The reason for this change is simply to avoid the following messages
that are unnecessary and can be confusing (and these messages will be
repeated for each submodule):
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint:   git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint:   git branch -m <name>

With this change the behaviour remains unchanged (apart from the
suppressed "warning" in the console output of course) and therefore this
doesn't cause any hashes to change and by default nix-prefetch-git uses
the "fetchgit" branch anyway (branchName can be set to override the
default):
Switched to a new branch 'fetchgit'

For that reason the initial branch name doesn't matter anyway and since
we're not relying on / hardcoding "master" we could simply switch to
"main" (which seems most common nowadays). See [0] for more details on
why this wouldn't break anything.
However, since the initial branch name doesn't matter and to avoid any
additional risks it was "decided" to keep using "master" (s. #113313).

[0]: https://github.com/NixOS/nixpkgs/pull/113313#issuecomment-780589516
2021-02-18 11:34:34 +01:00
..
add-opengl-runpath addOpenGLRunpath: only apply to ELF files 2019-05-23 16:52:45 -04:00
agda Merge pull request #110512 from neosimsim/agda-dont-install-Everything 2021-02-03 15:56:34 -03:00
alternatives treewide: stdenv.lib -> lib 2021-01-24 01:49:49 +01:00
appimage appimageTools: don't depend on libav 2021-02-02 17:26:35 +01:00
bintools-wrapper stdenv: Improve/fix FreeBSD support 2021-02-07 15:24:16 +00:00
build-bazel-package buildBazelPackage: only rewrite relevant symlinks 2021-01-13 21:34:09 +00:00
build-dotnet-package treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix 2021-01-19 01:16:25 -08:00
build-fhs-userenv build-fhs-userenv: bind /etc/profiles 2021-01-26 00:41:50 +00:00
build-fhs-userenv-bubblewrap build-fhs-userenv-bubblewrap: don't bind /etc/fonts from fhs environment 2021-01-26 00:53:59 +00:00
build-setupcfg
buildenv buildenv: paths to link resolving to the same absolute path is not a conflict 2020-06-10 06:42:48 -03:00
cc-wrapper pkgs/build-support: stdenv.lib -> lib 2021-01-24 19:07:54 -08:00
coq treewide: remove implicit use of stdenv.lib 2021-01-27 20:04:57 +07:00
docker treewide: stdenv.lib -> lib 2021-01-24 01:49:49 +01:00
dotnetbuildhelpers treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix 2021-01-19 01:16:25 -08:00
dotnetenv treewide: stdenv.lib -> lib 2021-01-24 01:49:49 +01:00
emacs emacs.pkgs.trivialBuild: add missing stdenv argument 2021-01-26 16:15:03 +01:00
expand-response-params
fetchbitbucket all-packages: move fetch* to pkgs/build-support/ 2019-01-26 22:47:54 -05:00
fetchbower
fetchbzr treewide: editorconfig fixes 2021-01-20 09:11:11 +10:00
fetchcvs fetchcvs: fix ssh wrapper failing due to missing /usr/bin/env 2021-02-08 19:18:17 +01:00
fetchdarcs pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
fetchdocker treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
fetchfirefoxaddon Merge pull request #106481 from tadfisher/patch-3 2021-01-30 22:31:24 +09:00
fetchfossil fetchfossil: Depend on cacert 2020-10-24 16:43:05 +05:30
fetchgit nix-prefetch-git: Run git-init with --initial-branch=master 2021-02-18 11:34:34 +01:00
fetchgithub all-packages: move fetch* to pkgs/build-support/ 2019-01-26 22:47:54 -05:00
fetchgitiles fetchFromGitiles: init 2019-12-02 22:44:33 +00:00
fetchgitlab fetchgitlab: Escape a few more characters in the revision 2020-09-13 12:34:08 +02:00
fetchgitlocal pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
fetchgx
fetchhg treewide: stdenvNoCC.lib -> lib 2021-01-27 13:01:51 +07:00
fetchipfs prefer-fetch-remote: an overlay to fetch on remote builders 2019-01-18 14:41:10 +00:00
fetchmavenartifact treewide: stdenv.lib -> lib 2021-01-24 01:49:49 +01:00
fetchmtn treewide: stdenvNoCC.lib -> lib 2021-01-27 13:01:51 +07:00
fetchnuget pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
fetchpatch fetchpatch: Allow using base64-encoded hash 2020-03-02 23:57:40 +01:00
fetchrepoorcz all-packages: move fetch* to pkgs/build-support/ 2019-01-26 22:47:54 -05:00
fetchrepoproject treewide: stdenvNoCC.lib -> lib 2021-01-27 13:01:51 +07:00
fetchs3 treewide: stdenvNoCC.lib -> lib 2021-01-27 13:01:51 +07:00
fetchsavannah all-packages: move fetch* to pkgs/build-support/ 2019-01-26 22:47:54 -05:00
fetchsvn treewide: stdenvNoCC.lib -> lib 2021-01-27 13:01:51 +07:00
fetchsvnrevision pkgs/*: add final newline to .nix files 2020-11-09 11:39:28 +00:00
fetchsvnssh fetchsvnssh: move defaults to package file 2019-02-03 15:30:27 +00:00
fetchurl mirrors: fix lua mirrors 2020-12-08 23:55:31 +01:00
fetchzip fetchzip: simplify postFetch as per suggestions 2021-02-05 13:08:57 +00:00
icon-conv-tools treewide: stdenv.lib -> lib 2021-01-24 01:49:49 +01:00
install-shell-files Recover the complicated situation after my bad merge 2020-10-26 09:01:04 +01:00
kernel treewide: stdenvNoCC.lib -> lib 2021-01-27 13:01:51 +07:00
libredirect treewide: stdenv.lib -> lib 2021-01-24 01:49:49 +01:00
make-desktopitem make-desktopitem: desktop-file-utils is a nativeBuildInput 2020-11-27 01:17:32 +01:00
make-startupitem
make-symlinks
mkshell mkshell: improve mergeInputs 2019-06-23 22:20:10 +02:00
mono-dll-fixer
nix-gitignore Revert "nix-gitignore: Optimise performance" 2020-12-27 08:04:16 -05:00
nuke-references nukeReferences: Use stdenvNoCC 2019-10-11 17:12:09 +02:00
ocaml treewide: stdenv.lib -> lib 2021-01-24 01:49:49 +01:00
oci-tools ociTools: init 2019-09-04 22:46:42 +00:00
pkg-config-wrapper pkgs/build-support: stdenv.lib -> lib 2021-01-24 19:07:54 -08:00
prefer-remote-fetch prefer-fetch-remote: an overlay to fetch on remote builders 2019-01-18 14:41:10 +00:00
references-by-popularity references-by-popularity: cache computation to avoid memory bloat 2019-03-05 16:37:52 -05:00
release releaseTools.debBuild: remove double lib in args 2021-02-07 11:00:42 -05:00
remove-references-to
rust treewide: stdenv.lib -> lib 2021-01-24 01:49:49 +01:00
setup-hooks Merge pull request #108081 from SuperSandro2000/silence-file-format-not-recognized 2021-01-07 00:49:44 +01:00
singularity-tools treewide: stdenv.lib -> lib 2021-01-24 01:49:49 +01:00
skaware treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
snap doc: fix after snaptools merge 2019-07-10 08:02:14 -07:00
src-only srcOnly: rename buildInputs to nativeBuildInputs 2020-04-27 14:31:40 +02:00
substitute substituteAll: allowSubstitutes = false; 2019-02-07 22:20:42 +00:00
substitute-files treewide: stdenv.lib -> lib 2021-01-24 01:49:49 +01:00
templaterpm treewide: stdenv.lib -> lib 2021-01-27 13:08:40 +07:00
upstream-updater treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
vm treewide: stdenv.lib -> lib 2021-01-24 01:49:49 +01:00
wrapper-common Merge #97597: stdenv wrappers: improve purity checking 2020-09-24 10:58:10 +02:00
writers treewide: stdenv.lib -> lib 2021-01-24 01:49:49 +01:00
build-maven.nix buildMaven: Support metadata-only dependencies 2018-11-29 17:29:59 +00:00
build-pecl.nix php.buildPecl: Allow PECLs to depend on other PECLs 2020-05-09 23:38:21 +02:00
closure-info.nix treewide: remove unused variables (#63177) 2019-06-16 19:59:05 +00:00
dhall-to-nix.nix treewide: remove redundant quotes 2019-09-08 23:38:31 +00:00
plugins.nix treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
replace-dependency.nix
setup-systemd-units.nix
source-from-head-fun.nix treewide: Change URLs to HTTPS 2019-04-22 10:19:54 +02:00
trivial-builders.nix nixos/systemd.tmpfiles.packages: fix an edge case 2020-08-16 10:23:53 +02:00