Skip to content

Commit

Permalink
Fix dist task (#8)
Browse files Browse the repository at this point in the history
Fix dist task resulting in corrupt binaries.
  • Loading branch information
rgreinho authored Dec 30, 2019
1 parent 9ad4d4a commit e7ebb4f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [[1.1.2]] - 2019.12.30

### Fixed

- Fix `dist` task resulting in corrupt binaries.

## [[1.1.1]] - 2019-12-16

### Change
Expand Down
13 changes: 6 additions & 7 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,12 @@ def builder(c, project, tag, output):
"""Build a project."""
if not project.exists():
raise ValueError(f"project {project} cannot be found in {project.resolve()}")
with c.cd(f"{project}"):
for platform in PLATFORMS:
cmd = (
f"GOOS={platform} GOARCH={GOARCH}"
f" go build -o {output.resolve()}-{tag}-{platform}-{GOARCH}"
)
c.run(cmd)
for platform in PLATFORMS:
cmd = (
f"GOOS={platform} GOARCH={GOARCH}"
f" go build -o {output.resolve()}-{tag}-{platform}-{GOARCH}"
)
c.run(cmd)


@task(dist, publish)
Expand Down

0 comments on commit e7ebb4f

Please sign in to comment.