lix/src
Maximilian Bosch cf9f33995b
Fix gitlab-fetcher to obtain tags and branches
Until now, the `gitlab`-fetcher determined the source's rev by checking
the latest commit of the given `ref` using the
`/repository/branches`-API.

This breaks however when trying to fetch a gitlab-repo by its tag:

```
$ nix repl
nix-repl> builtins.fetchTree gitlab:Ma27/nvim.nix/0.2.0
error: --- Error ------------------------------------------------------------------------------------- nix
unable to download 'https://gitlab.com/api/v4/projects/Ma27%2Fnvim.nix/repository/branches/0.2.0': HTTP error 404 ('')
```

When using the `/commits?ref_name`-endpoint[1] you can pass any kind of
valid ref to the `gitlab`-fetcher.

Please note that this fetches the only first 20 commits on a ref,
unfortunately there's currently no endpoint which only retrieves the
latest commit of any kind of `ref`.

[1] https://docs.gitlab.com/ee/api/commits.html#list-repository-commits
2020-07-13 19:22:59 +02:00
..
build-remote Revert the enum struct change 2020-06-18 22:11:26 +00:00
cpptoml Revert the enum struct change 2020-06-18 22:11:26 +00:00
libexpr Merge remote-tracking branch 'origin/master' into flakes 2020-07-06 16:40:10 +02:00
libfetchers Fix gitlab-fetcher to obtain tags and branches 2020-07-13 19:22:59 +02:00
libmain Merge remote-tracking branch 'origin/master' into flakes 2020-07-06 16:40:10 +02:00
libstore Merge remote-tracking branch 'origin/master' into flakes 2020-07-08 15:55:19 +02:00
libutil Merge remote-tracking branch 'origin/master' into flakes 2020-07-08 15:55:19 +02:00
nix nix develop: Support derivations with multiple outputs 2020-07-06 18:34:58 +02:00
nix-build appended ' __attribute__((weak)); ' to 'extern char * * environ ' 2020-06-17 03:25:34 +01:00
nix-channel Merge branch 'master' into errors-phase-2 2020-05-11 14:35:30 -06:00
nix-collect-garbage
nix-copy-closure Revert the enum struct change 2020-06-18 22:11:26 +00:00
nix-daemon Remove trailing whitespace 2020-06-15 14:12:39 +02:00
nix-env convenience form of addTrace 2020-06-24 13:46:25 -06:00
nix-instantiate remove 'format' from Error constructor calls 2020-04-21 17:07:07 -06:00
nix-prefetch-url Revert the enum struct change 2020-06-18 22:11:26 +00:00
nix-store Merge branch 'validPathInfo-temp' into validPathInfo-ca-proper-datatype 2020-06-18 23:01:58 +00:00
resolve-system-dependencies StorePath: Rewrite in C++ 2020-06-16 14:28:41 +02:00