Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small improvements #321

Merged
merged 8 commits into from
Aug 4, 2017
Merged

small improvements #321

merged 8 commits into from
Aug 4, 2017

Conversation

caarlos0
Copy link
Member

@caarlos0 caarlos0 commented Aug 2, 2017

I noticed that the final artifact was in a subfolder inside dist, different from the other pipes, so I change that. (see https://travis-ci.org/goreleaser/goreleaser/builds/260157591#L891)

I also dealt with a possible error while linking files.

Finally, I passed gometalinter again on the code (disabled on build because it always time out on travis for some reason) and fixed the things it complained about 👍

cc/ @ElOpio

@mention-bot
Copy link

@caarlos0, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ElOpio, @client9 and @lucapette to be potential reviewers.

Copy link

@come-maiz come-maiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great :D Thanks @caarlos0
There is one small error, because of cmd.Dir, which we can just remove.

snap := filepath.Join(
ctx.Config.Dist,
metadata.Name+"_"+metadata.Version+"_"+arch+".snap",
)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will fail because we are setting cmd.Dir before running the command, so it will try to put the .snap in an unexisting dist dir, in the wrong path.

It will work with this diff:
http://paste.ubuntu.com/25233953/

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @ElOpio, just pushed the fix

@codecov-io
Copy link

codecov-io commented Aug 4, 2017

Codecov Report

Merging #321 into master will increase coverage by 0.38%.
The diff coverage is 73.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #321      +/-   ##
==========================================
+ Coverage   94.12%   94.51%   +0.38%     
==========================================
  Files          27       27              
  Lines        1090     1093       +3     
==========================================
+ Hits         1026     1033       +7     
+ Misses         46       42       -4     
  Partials       18       18
Impacted Files Coverage Δ
config/config.go 100% <100%> (ø) ⬆️
pipeline/snapcraft/snapcraft.go 80.23% <63.63%> (+5.53%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7489856...a705c7b. Read the comment docs.

@caarlos0 caarlos0 merged commit 8a0936f into master Aug 4, 2017
@caarlos0 caarlos0 deleted the improvements branch August 4, 2017 01:44
@github-actions
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants