Skip to content

Commit

Permalink
Disable repository expiration checks in Journalbeat builds (#18005)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano committed Apr 27, 2020
1 parent 1eb3032 commit 7f037bf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion journalbeat/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,15 @@ func installDependencies(arch string, pkgs ...string) error {
return err
}

params := append([]string{"install", "-y", "--no-install-recommends"}, pkgs...)
params := append([]string{"install", "-y",
"--no-install-recommends",

// Journalbeat is built with old versions of Debian that don't update
// their repositories, so they have expired keys.
// Allow unauthenticated packages.
// This was not enough: "-o", "Acquire::Check-Valid-Until=false",
"--allow-unauthenticated",
}, pkgs...)
return sh.Run("apt-get", params...)
}

Expand Down

0 comments on commit 7f037bf

Please sign in to comment.