working recipe for linux/osx
@@ -18,8 +18,8 @@ build:
number: 0
script:
- pushd {{ pkg_src }}/cmd/{{ name }}
- - go build -v -o $GOBIN/{{ name }} . # [unix]
- - go build -v -o %GOBIN%\{{ name }}.exe . # [win]
+ - go build -v -o $GOBIN/{{ name }} -ldflags "-X main.revision=conda-forge" # [unix]
+ - go build -v -o %GOBIN%\{{ name }}.exe -ldflags "-X main.revision=conda-forge" # [win]
requirements:
build:
