Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions generator/golang/fullcircle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func TestTrainTravelFullCircleCanonicalRoundTrip(t *testing.T) {
cmd := exec.Command("go", "run", "./cmd/roundtrip")
cmd.Dir = dir
cmd.Env = append(os.Environ(),
"GO111MODULE=on",
"GOWORK=off",
"GOFLAGS=-mod=mod",
"TRAIN_TRAVEL_SPEC="+filepath.Join(repoRoot, "generator", "golang", "testdata", "train-travel.yaml"),
Expand Down
2 changes: 1 addition & 1 deletion generator/golang/roundtrip_components_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func reflectComponentsRoundTrip(t *testing.T, file *GeneratedFile) []byte {
out := filepath.Join(dir, "reconstructed.yaml")
cmd := exec.Command("go", "run", "./cmd/roundtrip")
cmd.Dir = dir
cmd.Env = append(os.Environ(), "GOWORK=off", "GOFLAGS=-mod=mod", "ROUNDTRIP_OUT="+out)
cmd.Env = append(os.Environ(), "GO111MODULE=on", "GOWORK=off", "GOFLAGS=-mod=mod", "ROUNDTRIP_OUT="+out)
if combined, err := cmd.CombinedOutput(); err != nil {
t.Fatalf("reflect round-trip command failed: %v\n%s", err, combined)
}
Expand Down
Loading