Skip to content

making the statik tool vendorable - #86

Open
balopat wants to merge 2 commits into
rakyll:masterfrom
balopat:cmd
Open

making the statik tool vendorable#86
balopat wants to merge 2 commits into
rakyll:masterfrom
balopat:cmd

Conversation

@balopat

@balopat balopat commented Sep 2, 2019

Copy link
Copy Markdown

This is a simple replace for statik.go to make the tool vendorable.
With this change one can setup a gen.go:

package main

import (
	"github.com/rakyll/statik/cmd"
)

func main() {
	cmd.Main()
}

and use that in the go generate command:

//go:generate go run ./gen/gen.go -src=./public -tags !dev

This way one can control with gomodules which tag/commit of the tool they want to use.

@balopat balopat changed the title making statik.go vendorable making the statik tool vendorable Sep 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant