Skip to content

Commit

Permalink
install docsonnet on tk init to make linting work (grafana#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasWinzeler authored Jul 13, 2022
1 parent ed87b38 commit ac70ed2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/tk/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ func installK8sLib(version string) error {
var initialPackages = []string{
"github.com/jsonnet-libs/k8s-libsonnet/" + version + "@main",
"github.com/grafana/jsonnet-libs/ksonnet-util",
"github.com/jsonnet-libs/docsonnet/doc-util", // install docsonnet to make `tk lint` work
}

if err := writeNewFile("lib/k.libsonnet", "import 'github.com/jsonnet-libs/k8s-libsonnet/"+version+"/main.libsonnet'\n"); err != nil {
Expand Down

0 comments on commit ac70ed2

Please sign in to comment.