diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2022-03-01 01:29:34 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2022-03-01 01:39:25 +0000 |
commit | ea71da395fe23fc0b4adb6fe5075742441e8baf8 (patch) | |
tree | 87a6b57e5b031e66db781fc7c5bc97facb7584d2 /src/libfetchers/github.cc | |
parent | 1c985428c4783568bcfb4692c6ce816eb5c5c31d (diff) |
Move some stuff from `Settings` to a new `FetchSettings`.
Starting work on #5638
The exact boundary between `FetchSettings` and `EvalSettings` is not
clear to me, but that's fine. First lets clean out `libstore`, and then
worry about what, if anything, should be the separation between those
two.
Diffstat (limited to 'src/libfetchers/github.cc')
-rw-r--r-- | src/libfetchers/github.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libfetchers/github.cc b/src/libfetchers/github.cc index 70622bf79..a1430f087 100644 --- a/src/libfetchers/github.cc +++ b/src/libfetchers/github.cc @@ -1,11 +1,13 @@ #include "filetransfer.hh" #include "cache.hh" -#include "fetchers.hh" #include "globals.hh" #include "store-api.hh" #include "types.hh" #include "url-parts.hh" +#include "fetchers.hh" +#include "fetch-settings.hh" + #include <optional> #include <nlohmann/json.hpp> #include <fstream> @@ -157,7 +159,7 @@ struct GitArchiveInputScheme : InputScheme std::optional<std::string> getAccessToken(const std::string & host) const { - auto tokens = settings.accessTokens.get(); + auto tokens = fetchSettings.accessTokens.get(); if (auto token = get(tokens, host)) return *token; return {}; |