| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
| |
Currently we wrap ssh so it can find the config file passed in by
<ssh-config-file>. If one however uses ProxyCommand ssh, then ssh that
is on PATH is taken (which is also unavailable when using nix-shell
--pure), which is the plain ${openssh}/bin/ssh.
This commit makes sure our wrapped ssh is available on PATH.
|
|
|
|
|
|
| |
This makes them produce the same store paths as builtins.fetchgit,
builtins.fetchTarball etc. See
https://github.com/NixOS/nix/commit/65b5f177b5fbb1b0778ede047a13a3cee9c59cfe.
|
|
|
| |
s/understand/understood/
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
They're additional commits from #26877.
Changing names of the fetched stuff was changing very many hashes,
and I think it's better to avoid that for the moment to reduce work
needed by nixpkgs users. The fetchers are expected to be commonly
used even outside nixpkgs, and the current naming wasn't that bad
usually.
(commit analogical to d10c3cc5eedf58e80e2; I haven't noticed the part of
the PR has already got to master)
|
| | |
|
| |
| |
| |
| | |
"${repo}-${rev}-scr" to avoid mass rebuild
|
|\ \
| |/
|/| |
|
| | |
|
|/ |
|
|
|
|
|
| |
Update the code that extracts the base name from a git repo URL so that
it can deal with URLs like "git@server:repo".
|
| |
|
|
|
|
| |
fixes #4491
|
|
|
|
| |
improve hash mismatch error message.
|
|
|
|
|
| |
in some cases `git show` include tag information in the output
this is suppressed by the parameter '-1'
|
|
|
|
| |
json requires certain characters to be escaped in strings.
|
|
|
|
|
|
|
|
| |
Deprecation warnings should not be used in Nixpkgs because they spam
innocent "nix-env -qa" users with (in this case) dozens of messages
that they can't do anything about.
This also reverts commit 2ca883338389b7ab995924a0cab0211993bdf1da.
|
|
|
|
|
|
|
|
| |
This commit extends fetchFromGitHub with ability to fetch GitHub
repositories with submodules, so we can use the function consistently
with all GitHub repositories.
Note it doesn't change the previous behavior.
|
| |
|
|
|
|
| |
Apparently everyone just copied those variables, instead of creating a
library constant for them. Some even removed the comment. -.-
|
|
|
|
|
|
|
|
|
|
| |
This fixes a regression caused by commit f56ab9e
("nix-prefetch-git: Include the date in the machine-readable [...]")
where a couple of directory paths printed by pushd/popd appeared before
the JSON output on stdout (thus breaking it). Fix it by redirecting the
extraneous output to /dev/null.
Reported by Michael Alan Dorman <mdorman@ironicdesign.com>.
|
|
|
|
|
|
|
| |
stdout, in strict ISO 8601 format.
This will be helpful for automatically updating fetchgit expressions
and the dates in version numbers associated with them.
|
| |
|
|
|
|
|
| |
Used shellcheck (https://github.com/koalaman/shellcheck) to validate
the script and fixed any resulting escaping and ambiguity issues.
|
|\
| |
| | |
fetchgit: remove only .git folder
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Source of this change goes back to 2009 and original version of
fetchgit at 205fb0c87eab5dd53c6a0e97b1ff0e48f141c902.
The nondeterminism is really caused by changing .git so leave other
files alone as they might be interesting.
Note: this causes a hash mismatch with Hydra's version of Git Plugin
which we should fix to comply.
|
|/ |
|
|
|
|
|
| |
The function wasn't checking that *all* of the characters where
[a-z0-9]. Fixes #13921
|
|
|
|
|
|
| |
JSON output
Previously, nix-prefetch-git would report the same JSON whether submodules were being fetched or not; with this change, the --fetch-submodules option will cause the JSON output to include "fetchSubmodules": true, so that fetchgit (builtins.fromJSON (builtins.readFile ./path/to/output.json)) will work.
|
|
|
|
|
| |
As discussed on the mailing list. The nix output was short-lived so it's
probably okay to change it.
|
| |
|
| |
|
|
|
|
| |
It turns out hashFormat has never been set.
|
|
|
|
|
|
|
|
|
| |
This commit fixes #6651.
Before this change the `nix-prefetch-git` script would use a different store
name than nix's `fetchgit` function. Because of that it was not possible to
use `nix-prefetch-git` as a way to pre-populate the store (for example when
the user it using private git dependencies that needs access to the ssh agent)
|
|
|
|
|
|
| |
The comment related to the `deepClone` and `no-deepClone` options was
misleading as these options have no relation with submodules, but on the
the depth in `git clone --depth n`.
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
These environment variables allow using fetchgit with git:// URLs using
the SOCKS proxy technique described in 'Using Git with a SOCKS proxy':
http://www.patthoyts.tk/blog/using-git-with-socks-proxy.html
Briefly, GIT_PROXY_COMMAND is set to a script which invokes connect[1],
which reads SOCKS_PROXY, which might be pointing to a local instance of
'ssh -D'.
[1] pkgs/tools/networking/connect
|
|\ \
| |/
|/| |
Add help flag to nix-prefetch-git
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
If "fetcher" is a string, then Nix will execute it with bash already, so
the additional bash argument in that string was redundant and apparently
causes trouble on non-Linux platforms.
Hopefully fixes https://github.com/NixOS/nixpkgs/issues/11496.
|
|\ \
| | |
| | |
| | |
| | |
| | | |
http://hydra.nixos.org/eval/1231884
Only Darwin jobs seem to be queued now,
but we can't afford to wait for that single build slave.
|
| |/
| |
| |
| |
| | |
This is guaranteed to be bash, SmartOS has ksh by
default and doesn't work.
|
| |
| |
| |
| |
| |
| | |
The script's shebang depends on /usr/bin/env, which we don't have in chroot
environments. This patch remedies the fallout from ade9f7167dd1fec6, which
fixed https://github.com/NixOS/nixpkgs/issues/11284.
|
|/
|
|
| |
Fixes https://github.com/NixOS/nixpkgs/issues/11284.
|
|
|
|
|
|
|
|
| |
Close #9790.
This fixes checkouting for a nasty combination:
1. To be checkouted is a revision which corresponds to tag in a form "<tag>^{}".
2. This revision is not fetched by default.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This is useful when `leaveDotGit = true` and some other derivation
expects some branch name to exist.
Previously, `nix-prefetch-git` always created a branch with a
hard-coded name (`fetchgit`).
|
|
|
|
|
|
|
| |
This patch resolves https://github.com/NixOS/nixpkgs/issues/6395. Deep
cloning is useful in combination with 'leaveDotGit' for builds that want
to run "git describe" to obtain a proper version string, etc., like the
'haskellngPackages.cabal2nix' package does.
|
|
|
|
|
| |
The commit date can be used as a version number in packages that don't
have proper releases.
|