We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aeffebf + b330ac3 commit 6fde172Copy full SHA for 6fde172
dsl/doc.go
@@ -56,8 +56,10 @@ package dsl
56
57
import (
58
// The imports below add dependencies needed by the generated temporary
59
- // code generation tool. Go cannot detect these dependencies so we must
60
- // add them explicitly.
+ // code generation tool which reuses the project's go.mod. Go cannot detect
+ // these dependencies since they are not used by the DSL. We must add them
61
+ // explicitly so that `go mod tidy` adds them to the go.mod file.
62
+ _ "github.com/gohugoio/hashstructure"
63
_ "golang.org/x/tools/go/ast/astutil"
64
_ "golang.org/x/tools/go/packages"
65
_ "golang.org/x/tools/imports"
0 commit comments