Skip to content

Commit e74b1bd

Browse files
authored
use relative path instead of $PWD for go:generate (for go 1.17 compatibility) (zalando#1615)
1 parent 458d7a1 commit e74b1bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/util/httpclient/httpclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package httpclient
22

3-
//go:generate mockgen -package mocks -destination=$PWD/mocks/$GOFILE -source=$GOFILE -build_flags=-mod=vendor
3+
//go:generate mockgen -package mocks -destination=../../../mocks/$GOFILE -source=$GOFILE -build_flags=-mod=vendor
44

55
import "net/http"
66

pkg/util/volumes/volumes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package volumes
22

3-
//go:generate mockgen -package mocks -destination=$PWD/mocks/$GOFILE -source=$GOFILE -build_flags=-mod=vendor
3+
//go:generate mockgen -package mocks -destination=../../../mocks/$GOFILE -source=$GOFILE -build_flags=-mod=vendor
44

55
import v1 "k8s.io/api/core/v1"
66

0 commit comments

Comments
 (0)