Merge changes I3ab84cc5,Iba34ad42 into main

* changes:
  nix3: always use the same verbosity default (info)
  libfetchers: log fetches by URL just before they happen
This commit is contained in:
Qyriad 2024-05-25 01:52:44 +00:00 committed by Gerrit Code Review
commit 1c0f3c540e
3 changed files with 5 additions and 5 deletions

View file

@ -133,6 +133,10 @@ std::pair<Tree, Input> Input::fetch(ref<Store> store) const
}
auto [storePath, input] = [&]() -> std::pair<StorePath, Input> {
// *sighs*, we print the base URL, rather than the full URL because the Nixpkgs
// fileset lib tests assume that fetching shallow and non-shallow prints exactly the
// same stderr...
printInfo("fetching %s input '%s'", this->getType(), this->toURL().base);
try {
return scheme->fetch(store, *this);
} catch (Error & e) {

View file

@ -363,11 +363,6 @@ void mainWrapped(int argc, char * * argv)
setLogFormat("bar");
settings.verboseBuild = false;
if (isatty(STDERR_FILENO)) {
verbosity = lvlNotice;
} else {
verbosity = lvlInfo;
}
NixArgs args;

View file

@ -155,6 +155,7 @@ diff -u <(
nix --offline profile install $flake2Dir 2>&1 1> /dev/null \
| grep -vE "^warning: " \
| grep -vE "^error \(ignored\): " \
| grep -vE "^fetching .+ input" \
|| true
) <(cat << EOF
error: An existing package already provides the following file: