We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2993c7a commit 993c976Copy full SHA for 993c976
modules/gcloud/gcloud.go
@@ -73,7 +73,7 @@ func WithProjectID(projectID string) Option {
73
74
// WithDataYamlFile seeds the Bigquery project for the GCloud container.
75
func WithDataYamlFile(dataYamlFile string) testcontainers.CustomizeRequestOption {
76
- return func(req *testcontainers.GenericContainerRequest) {
+ return func(req *testcontainers.GenericContainerRequest) error {
77
dataFile := testcontainers.ContainerFile{
78
HostFilePath: dataYamlFile,
79
ContainerFilePath: "/data.yaml",
@@ -82,6 +82,8 @@ func WithDataYamlFile(dataYamlFile string) testcontainers.CustomizeRequestOption
82
83
req.Files = append(req.Files, dataFile)
84
req.Cmd = append(req.Cmd, "--data-from-yaml", "/data.yaml")
85
+
86
+ return nil
87
}
88
89
0 commit comments