Fix pathsep for windows build
@@ -18,9 +18,9 @@ build:
script:
- GOBIN=$(go env GOBIN) # [not win]
- FOR /F "delims=" %%i IN ('go env GOBIN') DO set "GOBIN=%%i" # [win]
- - pushd {{ pkg_src }}/cmd/dyff
- - go build -v -o $GOBIN/{{ name }} -ldflags "-X github.com/homeport/dyff/internal/cmd.version={{ version }}" . # [unix]
- - go build -v -o %GOBIN%\{{ name }}.exe -ldflags "-X github.com/homeport/dyff/internal/cmd.version={{ version }}" . # [win]
+ - pushd {{ pkg_src }}
+ - go build -v -o $GOBIN/{{ name }} -ldflags "-X github.com/homeport/dyff/internal/cmd.version={{ version }}" ./cmd/dyff # [unix]
+ - go build -v -o %GOBIN%\{{ name }}.exe -ldflags "-X github.com/homeport/dyff/internal/cmd.version={{ version }}" .\cmd\dyff # [win]
requirements:
build:
