1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-20 11:11:03 -04:00
nix/src/libutil
Greg Hale a303c0b6dc Fetch commits from github/gitlab using Auth header
`nix flake info` calls the github 'commits' API, which requires
authorization when the repository is private. Currently this request
fails with a 404.

This commit adds an authorization header when calling the 'commits' API.
It also changes the way that the 'tarball' API authenticates, moving the
user's token from a query parameter into the Authorization header.

The query parameter method is recently deprecated and will be disallowed
in November 2020. Using them today triggers a warning email.
2020-09-16 13:46:48 -04:00
..
tests fixup! Add a default value for the settings 2020-09-16 13:53:09 +02:00
abstractsettingtojson.hh Don't include nlohmann/json.hpp in config.hh 2020-09-16 13:53:09 +02:00
affinity.cc affinity operator<< 2020-05-04 14:44:00 -06:00
affinity.hh
ansicolor.hh Fix ANSI color constants 2020-07-12 16:52:20 +02:00
archive.cc Use TeeSink and TeeSouce in a few more places 2020-08-13 14:51:17 +00:00
archive.hh unsigned long long -> uint64_t 2020-07-30 13:34:04 +02:00
args.cc Allow 'nix' subcommands to provide docs in Markdown format 2020-08-20 12:21:46 +02:00
args.hh Allow 'nix' subcommands to provide docs in Markdown format 2020-08-20 12:21:46 +02:00
compression.cc Revert the enum struct change 2020-06-18 22:11:26 +00:00
compression.hh Fix Brotli decompression in 'nix log' 2018-08-06 15:40:29 +02:00
config.cc Don't include nlohmann/json.hpp in config.hh 2020-09-16 13:53:09 +02:00
config.hh Don't include nlohmann/json.hpp in config.hh 2020-09-16 13:53:09 +02:00
error.cc bump 2020-07-06 11:54:53 -06:00
error.hh Add UnimplementedError to ease grepping for these 2020-07-20 14:13:37 -04:00
finally.hh Add missing #include 2016-11-07 14:35:47 +01:00
fmt.hh with normaltxt, elide yellow color code instead of canceling it; use normaltxt on plain_string hintfmt 2020-06-22 11:32:20 -06:00
hash.cc Add Hash::dummy to signal default value 2020-08-05 15:11:49 -04:00
hash.hh Remove Hash::operator bool () 2020-08-05 15:30:38 -04:00
json.cc Fix build 2020-07-30 15:27:28 +02:00
json.hh Make std::uncaught_exception warning less noisy 2019-10-09 23:04:11 +02:00
lazy.hh Figure out the user's home directory if $HOME is not set 2017-05-05 17:08:23 +02:00
local.mk StorePath: Rewrite in C++ 2020-06-16 14:28:41 +02:00
logging.cc libutil/logging: extend internal-json logger to make it more machine-readable 2020-07-26 02:29:57 +02:00
logging.hh Generate the nix.conf docs from the source code 2020-08-19 18:28:04 +02:00
lru-cache.hh Missing #include <cassert> in lru-cache.hh (#3654) 2020-06-03 10:15:22 +00:00
monitor-fd.hh monitor-fds: Fix on macOS. 2018-02-14 18:26:37 -05:00
pool.hh RemoteStore: Close connection if an exception occurs 2018-10-16 23:36:15 +02:00
ref.hh Allow setting the state directory as a store parameter 2016-06-02 16:02:48 +02:00
rust-ffi.cc StorePath: Rewrite in C++ 2020-06-16 14:28:41 +02:00
rust-ffi.hh StorePath: Rewrite in C++ 2020-06-16 14:28:41 +02:00
serialise.cc Revert "LocalStore::addToStoreFromDump copy in chunks" 2020-07-15 23:37:49 +00:00
serialise.hh Merge remote-tracking branch 'upstream/master' into single-ca-drv-build 2020-08-28 19:59:14 +00:00
split.hh parser.hh -> split.hh 2020-07-20 17:42:34 +00:00
sync.hh sync.hh: return cv_status instead of dropping it, in case useful. 2018-06-18 17:31:00 -05:00
tarfile.cc tarfile.cc: Restore timestamps 2019-12-19 15:09:54 +01:00
tarfile.hh libarchive proof of concept 2019-12-07 22:35:14 +07:00
thread-pool.cc Fix a hang in ThreadPool 2017-10-09 15:41:09 +02:00
thread-pool.hh Fix extra ; warnings involving MakeError 2019-11-10 11:24:47 -05:00
topo-sort.hh Abstract out topo sorting logic 2020-07-27 20:45:34 +00:00
types.hh Fetch commits from github/gitlab using Auth header 2020-09-16 13:46:48 -04:00
url.cc Improve ref validity checking in fetchGit 2020-05-30 12:29:35 +02:00
url.hh Make uri schemes grammar more RFC-compliant 2020-09-16 13:53:09 +02:00
util.cc Allow 'nix' subcommands to provide docs in Markdown format 2020-08-20 12:21:46 +02:00
util.hh Allow 'nix' subcommands to provide docs in Markdown format 2020-08-20 12:21:46 +02:00
xml-writer.cc Cleanup 2019-11-06 16:53:02 +01:00
xml-writer.hh Fix some random -Wconversion warnings 2018-05-02 13:56:34 +02:00