-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the CA bundle auto fallback for FROM scratch docker from multicur…
…l to here (#31) * Add the CA bundle auto fallback for FROM scratch docker from fortio/multicurl#146 here * move to a seperate file and use negative build tag - thx @hhhapz
- Loading branch information
Showing
5 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ | |
|
||
# Dependency directories (remove the comment below to include it) | ||
# vendor/ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Fortio CLI/Main utilities. | ||
// | ||
// (c) 2024 Fortio Authors | ||
// See LICENSE | ||
|
||
//go:build !no_tls_fallback | ||
// +build !no_tls_fallback | ||
|
||
package cli // import "fortio.org/cli" | ||
|
||
// golang.org/x/crypto/x509roots/fallback blank import below is because this is a base for all our main package, | ||
// the CA bundle is needed for FROM scratch images to work with outcalls to internet valid TLS certs (https). | ||
// See https://github.com/fortio/multicurl/pull/146 for instance. | ||
import _ "golang.org/x/crypto/x509roots/fallback" // This is a base for main, see extended comment above. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters