mirror of
https://github.com/ko-build/ko.git
synced 2025-07-15 23:54:17 +02:00
Add context to go build (#105)
This commit is contained in:
committed by
jonjohnsonjr
parent
7893c74458
commit
1c54dd6b3e
@ -16,6 +16,7 @@ package commands
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
@ -64,6 +65,7 @@ func TestResolveMultiDocumentYAMLs(t *testing.T) {
|
||||
inputYAML := buf.Bytes()
|
||||
|
||||
outYAML, err := resolveFile(
|
||||
context.Background(),
|
||||
yamlToTmpFile(t, buf.Bytes()),
|
||||
testBuilder,
|
||||
kotesting.NewFixedPublish(base, testHashes),
|
||||
@ -117,6 +119,7 @@ kind: Bar
|
||||
base := mustRepository("gcr.io/multi-pass")
|
||||
|
||||
outputYAML, err := resolveFile(
|
||||
context.Background(),
|
||||
yamlToTmpFile(t, inputYAML),
|
||||
testBuilder,
|
||||
kotesting.NewFixedPublish(base, testHashes),
|
||||
|
Reference in New Issue
Block a user