Skip to content

Commit 486de10

Browse files
committed
rofl/build: Omit trust root if not obtainable in debug builds
1 parent 9cc7d78 commit 486de10

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cmd/rofl/build/build.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,11 @@ func setupBuildEnv(deployment *buildRofl.Deployment, npa *common.NPASelection) {
290290

291291
// Obtain and configure trust root.
292292
trustRoot, err := fetchTrustRoot(npa, deployment.TrustRoot)
293+
if deployment.Debug && err != nil {
294+
// Trust root is not mandatory for debug builds.
295+
fmt.Printf("WARNING: no trust root will be provided during compilation: %v\n", err)
296+
return
297+
}
293298
cobra.CheckErr(err)
294299
os.Setenv("ROFL_CONSENSUS_TRUST_ROOT", trustRoot)
295300
}

0 commit comments

Comments
 (0)