Skip to content

Commit 6fde172

Browse files
authored
Merge pull request #3682 from goadesign/fix/add_missing_tool_import
Add missing codegen tool import
2 parents aeffebf + b330ac3 commit 6fde172

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dsl/doc.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ package dsl
5656

5757
import (
5858
// 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.
59+
// code generation tool which reuses the project's go.mod. Go cannot detect
60+
// 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"
6163
_ "golang.org/x/tools/go/ast/astutil"
6264
_ "golang.org/x/tools/go/packages"
6365
_ "golang.org/x/tools/imports"

0 commit comments

Comments
 (0)