diff --git a/.goreleaser.yml b/.goreleaser.yml index 970e2ae..77bdb3a 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -25,7 +25,7 @@ builds: flags: - -trimpath nfpms: - - name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" + - file_name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" replacements: Linux: linux 386: i386 diff --git a/cmd/tinc-boot/run/main_default.go b/cmd/tinc-boot/run/main_default.go new file mode 100644 index 0000000..6fd8210 --- /dev/null +++ b/cmd/tinc-boot/run/main_default.go @@ -0,0 +1,12 @@ +//+build !linux + +package run + +import "fmt" + +type Cmd struct { +} + +func (cmd Cmd) Execute([]string) error { + return fmt.Errorf("not implemented on the platform. Only Linux supported") +} diff --git a/cmd/tinc-boot/run/main.go b/cmd/tinc-boot/run/main_linux.go similarity index 100% rename from cmd/tinc-boot/run/main.go rename to cmd/tinc-boot/run/main_linux.go