1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
Commit Graph

721 Commits

Author SHA1 Message Date
Carlos Alexandro Becker
3d93a2dfce
test: improved fpm test 2017-12-26 22:18:01 -02:00
Carlos Alexandro Becker
a7a290fb63
fix: use gnu-tar on macOS
closes #409
2017-12-26 22:16:34 -02:00
Carlos Alexandro Becker
2af7169484
feat: defaulter on snap pipe 2017-12-26 21:45:53 -02:00
Carlos Alexandro Becker
6270aa9cb2
feat: name template on snapcraft packages
closes #470
2017-12-26 21:44:11 -02:00
Carlos Alexandro Becker
5dba7fbfdf
feat: name_template support for fpm packages
closes #409
2017-12-26 21:36:17 -02:00
Carlos Alexandro Becker
4ce13bc7c3
refactor: name templates for archive pipe 2017-12-26 21:19:58 -02:00
Carlos Alexandro Becker
ef85d587fe
test: fixed one test 2017-12-26 16:37:05 -02:00
Carlos Alexandro Becker
f99de0aeb6
test: fix start/stop registry 2017-12-26 15:41:50 -02:00
Carlos Alexandro Becker
1d117b4b1a
test: flag.Parse 2017-12-26 15:24:19 -02:00
Carlos Alexandro Becker
76b30d6f40
test: improved docker pipe test coverage 2017-12-26 15:20:25 -02:00
Carlos Alexandro Becker
1b7e4cea85
test: improved docker pipe coverage
also added support for running tests against docker.io registry
2017-12-26 14:56:44 -02:00
Carlos Alexandro Becker
219babd044
fix: treatment for when an extra file doesnt exist 2017-12-26 14:56:20 -02:00
Carlos Alexandro Becker
deff38ebe9
test: parallelism 2017-12-25 23:53:44 -02:00
Carlos Alexandro Becker
d96d321c79
fix: improved docker pipe output 2017-12-25 23:30:39 -02:00
Carlos Alexandro Becker
ca35acf434
feat: docker in parallel 2017-12-25 23:28:09 -02:00
Carlos Alexandro Becker
32ca896a24
feat: docker in parallel 2017-12-25 23:27:06 -02:00
Carlos Alexandro Becker
60001bf63c
fix: fixed writing golden files 2017-12-25 20:09:55 -02:00
Carlos Alexandro Becker
bac7c6f611
fix: fixed writing golden files 2017-12-25 20:03:40 -02:00
Carlos Alexandro Becker
bd5df9da3a
fix: fixed writing golden files 2017-12-25 19:58:07 -02:00
Carlos Alexandro Becker
c7b25726df
test: fixed docker link tests 2017-12-24 10:14:55 -02:00
Carlos Alexandro Becker
bceb42d50b
feat: using filepath.Walk to link files and folders 2017-12-24 10:12:51 -02:00
Sven Loth
cdc306a310 added one more test to cover 2-level directory linking 2017-12-21 12:11:42 +01:00
Sven Loth
e4da87b262 feat: docker - added linker for extra directories
When adding extra files to docker using a hard link it is impossible
to add a directory because only files can be linked hard. For directories
I added a linker that recursively linkes all files in a directory and re-
creates the directory structure in the dist directory.
2017-12-20 22:57:15 +01:00
Carlos Alexandro Becker
966251971f
fix: paralelism on checksums pipe 2017-12-19 19:50:03 -02:00
Carlos Alexandro Becker
660f8cfd80
test: added env to pipe tests 2017-12-19 19:34:33 -02:00
Carlos Alexandro Becker
dd6b650017
Merge pull request #465 from magiconair/checksums-with-env-vars
feat: allow env vars for checksum name_template
2017-12-19 19:32:09 -02:00
Carlos Alexandro Becker
f194d84120
test: improved archive tests 2017-12-18 21:33:03 -02:00
Carlos Alexandro Becker
3342566528
fix: archive default name template 2017-12-18 21:33:03 -02:00
Carlos Alexandro Becker
3a1f737747
refactor: move archiveformat code inside archive pipe
It was being used only in that pipe anyway.
2017-12-18 21:15:32 -02:00
Carlos Alexandro Becker
1475343200
typo: writting vs writing 2017-12-18 21:07:47 -02:00
Carlos Alexandro Becker
b667490ce4
fix: add the build artifact only if build succeeds 2017-12-18 21:07:33 -02:00
Carlos Alexandro Becker
530feac44a
fix: improved artifact add logs 2017-12-18 09:19:02 -02:00
Carlos Alexandro Becker
10c6df73c0
chore: more cleanup 2017-12-18 09:00:19 -02:00
Carlos Alexandro Becker
245e888359
chore: cleanup 2017-12-18 00:53:48 -02:00
Carlos Alexandro Becker
64485c9c37
fix: docker images on release notes 2017-12-17 23:11:17 -02:00
Carlos Alexandro Becker
9cfa2c35ce
fix: general cleanup 2017-12-17 23:04:29 -02:00
Carlos Alexandro Becker
97ac740233
fix: added more tests to artifactory 2017-12-17 22:54:24 -02:00
Carlos Alexandro Becker
9ac3b8cf79
fix: cleaning up artifactory 2017-12-17 22:50:49 -02:00
Carlos Alexandro Becker
ab5e431b95
fix: cleaning up artifactory 2017-12-17 22:46:49 -02:00
Carlos Alexandro Becker
aceb41b0b2
fix: cleaning up 2017-12-17 22:31:27 -02:00
Carlos Alexandro Becker
f9dbfb5d70
fix: cleaning up 2017-12-17 22:28:24 -02:00
Carlos Alexandro Becker
35e92aa0f4
test: fix sign pipe tests (hopefully) 2017-12-17 22:18:12 -02:00
Carlos Alexandro Becker
5ff07c38ea
fix: cleaning up 2017-12-17 22:12:25 -02:00
Carlos Alexandro Becker
92b9d92bc8
fix: cleaning up 2017-12-17 22:11:04 -02:00
Carlos Alexandro Becker
df5d9c0b43
test: fixed artifactory pipe tests 2017-12-17 21:57:24 -02:00
Carlos Alexandro Becker
df6076e406
test: fixed fpm pipe tests 2017-12-17 21:31:34 -02:00
Carlos Alexandro Becker
826dd45fa8
test: fixed release pipe tests 2017-12-17 21:26:03 -02:00
Carlos Alexandro Becker
8828be1f8b
test: fixed snap pipe tests 2017-12-17 21:22:36 -02:00
Carlos Alexandro Becker
f2965192b0
test: fixed docker pipe tests
Couldnt test locally due to https://github.com/docker/for-mac/issues/2339
2017-12-17 21:00:50 -02:00
Carlos Alexandro Becker
82a24d048d
test: fixed checksums pipe tests 2017-12-17 20:33:28 -02:00
Carlos Alexandro Becker
753359a63a
test: removed useless test 2017-12-17 20:26:30 -02:00
Carlos Alexandro Becker
d8987e281f
test: fixing build pipe tets 2017-12-17 20:25:54 -02:00
Carlos Alexandro Becker
f433bcb59c
fix: brew tests/multiple darwin builds/gh enterprise 2017-12-17 20:15:18 -02:00
Frank Schroeder
0780c232fc
feat: allow env vars for checksum name_template
Allow env vars for the checksum name_template.
2017-12-17 22:54:07 +01:00
Carlos Alexandro Becker
9dcfcd4db6
test: wip fixing sign tests 2017-12-17 19:37:27 -02:00
Carlos Alexandro Becker
8a0b484cab
fix: wip fixing artifactory 2017-12-17 19:19:44 -02:00
Carlos Alexandro Becker
d4b84becd7
fix: signature upload 2017-12-17 19:16:25 -02:00
Carlos Alexandro Becker
30a7867604
test: fixed archive tests 2017-12-17 18:40:19 -02:00
Carlos Alexandro Becker
3cfa0787b3
refactor: fixed docker pipe 2017-12-17 18:10:38 -02:00
Carlos Alexandro Becker
32fbebcc58
refactor: small fixes here and there 2017-12-17 18:01:58 -02:00
Carlos Alexandro Becker
24f186a63c
refactor: fixed sign and snap pipe 2017-12-17 17:25:04 -02:00
Carlos Alexandro Becker
906c8b08e3
refactor: fixed fpm pipe 2017-12-17 17:11:08 -02:00
Carlos Alexandro Becker
1982259c29
refactor: improved artifact filtering 2017-12-17 16:59:54 -02:00
Carlos Alexandro Becker
e9b276923a
refactor: fixed docker and archive pipes 2017-12-17 16:46:45 -02:00
Carlos Alexandro Becker
bdacb33cea
refactor: fixed checksums pipe 2017-12-17 16:37:19 -02:00
Carlos Alexandro Becker
248810535e
refactor: fixed brew pipe 2017-12-17 16:31:06 -02:00
Carlos Alexandro Becker
574b2942b3
refactor: refactored artifactory pipe 2017-12-17 16:10:40 -02:00
Carlos Alexandro Becker
d83b420f39
refactor: changed code on archive pipe 2017-12-17 15:50:09 -02:00
Carlos Alexandro Becker
b9cc820e1d
refactor: changed code on build pipe 2017-12-17 15:24:49 -02:00
Carlos Alexandro Becker
0d9b227f48
chore: fixed gitignore 2017-12-16 20:23:08 -02:00
Frank Schroeder
523a650f4f
test: make gometalinter happy
Fix strange things gometalinter complains about and which break the CI
build.
2017-12-16 00:30:17 +01:00
Frank Schroeder
1f0d44d576
fix: simplify code and improve test
Remove some paths from the code where you can shoot yourself in the
foot.
Improve tests to check for most cases.
2017-12-15 18:51:54 +01:00
Frank Schroeder
d68b864f01
test: add test for sign pipeline
The unit tests needs a test key to work with. I have tried to create a
test keyring on the fly and while that worked I was not able to
successfully sign with that. gpg would bail with an ioctl error which I
didn't track down since using a static key works.
2017-12-15 15:38:49 +01:00
Frank Schroeder
7b95e1e342
feat: add artifact sign pipeline
This patch adds a generic artifact signing pipeline.

Fixes #166
2017-12-13 23:02:19 +01:00
Andy Grunwald
5358724f0b Merge branch 'master' into artifactory-support
* master:
  fix: lint warnings
  test: fixed tests
  test: added tests to effective config pipe
  feat: write actual config to dist
2017-12-10 16:55:55 +01:00
Carlos Alexandro Becker
36015b4724 fix: lint warnings
added nosec for a mkdir 0755
2017-12-10 13:02:48 -02:00
Carlos Alexandro Becker
07c04b33f8 test: fixed tests
broken because of dist not being removed anymore
2017-12-10 13:02:48 -02:00
Carlos Alexandro Becker
f3fcb48983 test: added tests to effective config pipe
Also renamed the pipe from finalconfig to effectiveconfig
2017-12-10 13:02:48 -02:00
Carlos Alexandro Becker
06ddedf12a feat: write actual config to dist
Writes the actual config file (with defaults
merged, etc) into the dist folder.

Can be useful for debug purposes.
2017-12-10 13:02:48 -02:00
Andy Grunwald
af618f9b69 refactor: Removed os.Getenv / os.Setenv in favor of ctx.Env
goreleaser offers a ctx.Env map to access env variables.
os.GetEnv and os.Setenv usages where removed from
Artifactory pipeline in favor of cts.Env access.
This makes testing easier
2017-12-10 14:41:27 +01:00
Andy Grunwald
4e4529bbf8 refactor: Simplified if checks for configured artifactories
-       if l := len(ctx.Config.Artifactories); l == 0 {
+       if len(ctx.Config.Artifactories) == 0 {
2017-12-10 14:23:32 +01:00
Andy Grunwald
240a70e17c test: Added three new unit tests for Artifactory pipeline
New tests added:
- TestRunPipe_TargetTemplateError
- TestRunPipe_UnparsableErrorResponse
- TestRunPipe_SkipWhenPublishFalse
2017-12-09 23:34:25 +01:00
Andy Grunwald
eacabadc40 test: Fix unit test TestArtifactoriesWithInvalidMode
The unit test TestArtifactoriesWithInvalidMode was not testing
what it should be. The publish parameter was not set and we
were testing for skipping instead of error
2017-12-09 22:53:44 +01:00
Andy Grunwald
3fa0fe5708 test: Add more unit tests for Artifactory pipeline
Added a couple of new unit tests, e.g. to test
- Defaults
- Mode: archive
2017-12-09 22:25:03 +01:00
Andy Grunwald
4021a8e41f refactor: Generalized uploadAssetAndLog in Artifactory pipeline
uploadBinary and uploadArchive where nearly the same code.
We generalized uploadAssetAndLog() to handle both cases
2017-12-09 21:38:17 +01:00
Andy Grunwald
51bc617d32 fix: shadows declaration (vetshadow)
vetshadow throwed two warnings of shadows declaration of err
2017-12-09 21:20:02 +01:00
Andy Grunwald
d875dd0dd5 feat: Implemented upload mode for Artifactory pipeline
The Artifactory pipeline now supports two different
types of upload modes:

- binary: Only the raw binaries will be uploaded
- archive: All artifacts that are generated will be uploaded
2017-12-09 20:54:04 +01:00
Andy Grunwald
27a9abc73b refactor: Introduced name per artifactory instance for identification
This introduced a new property per Artifactory instance: Name
With this name we are able to

a) identify a instance
b) use the name to identify the secret (instead of a number)
c) use this name for logging
2017-12-09 18:17:37 +01:00
Andy Grunwald
13fea192c9 Merge branch 'master' into artifactory-support
* master:
  fix: remove brew taps listing from release notes
  fix: tests should pass now
  style: improved goreleaser output
2017-12-09 17:40:26 +01:00
Carlos Alexandro Becker
bb5e27b0c4 fix: remove brew taps listing from release notes
It never worked, because the brew pipe is the last
to run.

Either way, it is not a really useful thing to
have I think.
2017-12-08 22:03:26 -02:00
Carlos Alexandro Becker
29d9ae5878 style: improved goreleaser output
- Added paddings
- Added total time taken by the release

Closes #441
2017-12-08 21:49:45 -02:00
Andy Grunwald
1f5df43e75 Merge branch 'master' into artifactory-support
* master: (47 commits)
  docs: add docs for env vars in name_template
  test: add test for name_template with env var
  feat: support env vars for name_template
  docs: Fixed broken homebrew link
  docs: fixed master build status badge on readme
  chore: misspeled word on package docs
  feat: improved release notes
  chore: create config.yml
  chore: create stale.yml
  chore: push docs to master
  chore: changing the order of the tasks
  chore: using https instead of ssh url
  chore: always run make static on build
  chore: using travis deploy feature
  chore: automating docs deployment
  fix: do not decorate git log output
  chore: make static pushes repo as well
  docs: env support for docker tag_template
  feat: allow env vars for docker tag_template
  fix: move env vars to context
  ...
2017-12-08 21:50:02 +01:00
Frank Schroeder
904d4455f4 test: add test for name_template with env var
Add a test for name_template with an env var.
2017-12-07 23:21:43 -02:00
Frank Schroeder
ca3eedfea8 feat: support env vars for name_template
This patch adds support to use env vars for the
archive.name_template parameter.
2017-12-07 23:21:43 -02:00
Carlos Alexandro Becker
a8ce65013e chore: misspeled word on package docs
Also simplified imports
2017-12-06 00:33:30 -02:00
Carlos Alexandro Becker
e87ab21a0a feat: improved release notes
- Added homebrew taps
- Docker pull commands instead of list of docker imgs
2017-12-06 00:13:24 -02:00
Frank Schroeder
d4a54c9381 fix: do not decorate git log output
Ensure that the git log output is not decorated. Otherwise, the format
changes and the tests fail.

Fixes #439
2017-12-05 22:49:20 -02:00
Frank Schroeder
25e1cddc1b feat: allow env vars for docker tag_template
Add env var support for the Docker tag_template field incl. test.
2017-12-05 21:42:04 -02:00
Frank Schroeder
1c2afe148f fix: move env vars to context
In preparation to support env vars for Docker tag_template and also to
simplify the tests by not chaning the global os.Environ I've moved the
parsed env var map into the context.Context.
2017-12-05 21:42:04 -02:00
Frank Schroeder
3e0b7fbd46 fix: split env vars into only two parts
The loadEnv() function was splitting env vars on all `=` characters
which is not correct. Env vars are `key=val` and contain only two parts.
2017-12-05 21:42:04 -02:00
Carlos Alexandro Becker
0074b79819 fix: fixing test to use the right import
VSCode used alecthomas/template instead of text/template
automatically, tests begin to fail when I fixed it
2017-12-05 14:49:25 -02:00
Carlos Alexandro Becker
3be7299047 fix: using the right import
VSCode used alecthomas/template instead of
text/template automatically
2017-12-05 14:49:25 -02:00
Carlos Alexandro Becker
14d1347ed9 feat: allow templates on docker tags
Allow to template docker tags.

Closes #433
2017-12-05 14:49:25 -02:00
Carlos Alexandro Becker
d5c7af1db9 feat: support environment variables on ldflags
Supports passing environment variables to ldflags by using .Env.VARNAME.

Closes #426
2017-12-04 09:23:26 -02:00
Carlos Alexandro Becker
b77acd2cc7 test: improving tests
Moved tests from defaults to build pipe, as it
doesnt make sense to be there.
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
2dfdb4cd61 test: fpm tests
Added more tests to cover defaulter.
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
a432839ad4 test: brew tests
Added more tests to cover defaulter.
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
44d01ceccb fix: removed uneeded docs
We use fmt.Stringer now
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
208ab4df23 fix: lint issue
I was shadowing binaryName
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
0c91f6e210 test: build tests
Added more tests to cover defaulter. Also moved
some code around.
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
b702adfc61 test: docker tests
Added tests for docker defaulter
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
8535ed3811 test: archive tests
Added tests for archive defaulter
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
278026992b fix: checksums pipe
I messed up the name template, tests save me
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
8c86228e42 fix: fixed name template
I changed it, dunno why. Lets keep changes minumum
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
a3a10fab37 test: release tests
Added tests for release defaulter
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
f9cdb2df04 test: added test for snapshot
Added tests for snapshot defaulter
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
0d9da86624 fix: missing Binary field
Readded it for now. Should remove it someday as it is deprecated
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
66e8f98735 fix: removed unused import
Dunno why vscode did not removed it
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
2b42a7346f fix: improved defaulter documentation
As suggested by @jorin
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
eb19e2b5d9 refactor: rm internal/name pkg
Each pipe now does its own templating
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
3fd9e0f306 fix: checksums pipe
An if statement was wrong, fixed it and added tests
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
65a8e96779 fix: broken test
Was using a constant that no longer exists
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
1ed299a6d7 refactor: defaulter interface
Right now the code looks weird because the defaults
of a pipe are far away of the implementation of the pipe.

the intend of this PR is to bring them closer by having a
Defaulter interface.

I also renamed the Pipe interface to Piper, and removed
the Description method in favor for fmt.Stringer.
2017-12-03 13:00:01 -02:00
Andy Grunwald
0b0c12aaad fix: Adjusted codebase according comments from @caarlos0
- Renamed function to upload()
- Fixed an inline comment
- Excluded a defer file.Close() from errcheck analysis
2017-12-02 23:39:39 +01:00
Andy Grunwald
78f83ec466 test: Add three new unit tests for Artifactory pipeline
Three new unit tests added:
- TestRunPipe_NoFile: Checks the error if the file for the
upload is not there
- TestRunPipe_UnparsableTarget: Checks that an error will
be thrown if the target is not parsable
- TestRunPipe_DirUpload: Checks that an error will be
thrown when we try to upload a directory
2017-12-02 22:03:01 +01:00
Andy Grunwald
2842b86365 fix: Don't continue Artifactory pipeline when there is an error
We are able to define multiple Artifactory instances.
In the former implementation, we continue once one instance upload
was failing. Now we stop and throw the error.
2017-12-02 21:40:14 +01:00
Andy Grunwald
37bc09f2bc fix: Use HTTP error if upload to Artifactory failes
In a former commit we respected the error of the Close()
call for a HTTP response. The fix was to introduce named
return values (e.g. err for error).
The problem: We defered the resp.Close() via
err = resp.Close()
This had the effect of always overwrite the real error
that happen when the HTTP call failes (due to checkResponse func).
2017-12-02 21:29:59 +01:00
Andy Grunwald
024ca0a1af fix: panic while access a http response in Artifactory pipeline
When the upload target is not resolvable by tcp (e.g. unknown host)
no response object will be generated.
In an error case the response object is used (it was assumed that
this will be there at every point in time).

This commit fixes this behaviour
2017-12-02 21:10:32 +01:00
Andy Grunwald
c1d2c28b0a fix: gometalinter warnings for Artifactory pipeline
gometalinter had several warnings about not respected
err return values from Close() calls
2017-12-02 20:47:02 +01:00
Andy Grunwald
492a018b7f feat: Added basic support to push binaries into Artifactory
Artifactory is an universal Artifact Repository Manager by
JFrog. See https://www.jfrog.com/artifactory/

It is available in an OSS and Enterprise version.
Many companies using this internally to store, manage and
distribute binaries within their internal infrastructure.

It adds basic support to push all generated binaries into an
Artifactory. Basic means only the built artifacts. Without
checksums or archives.
As an authentication only Basic auth is supported by this Pipe.

See #344
2017-12-02 20:26:55 +01:00
Carlos Alexandro Becker
8e6133c70c feat: allow override dist folder
Allow configuring the dist folder via
config file.

Closes #421
2017-11-26 22:20:40 -02:00
Carlos Alexandro Becker
2cc10c3cc8 chore: fixed/ignore lint issues
GAS started to break on file/folder permissions
and executing things with variables.

closes #422
2017-11-26 20:40:07 -02:00
Carlos Alexandro Becker
dba83bff60 refactor: using os.Stat to decide wether it is a file or a dir
This should avoid some failures.
2017-11-21 08:27:32 -02:00
Carlos Alexandro Becker
03aec11c60 refactor: small improvement on if stmt
Inverted if statements are harder to read. No need for that.
2017-11-21 08:27:32 -02:00
Carlos Alexandro Becker
9a9b9373a2 fix: accepting non-main.go files as well
Previous code was handling only main.go as the main build file, but
the main function can actually be in any file.

Now, if a specific file (*.go) is passed, that file will be checked
for the main function.

If a folder is passed, the package will be scanned for the main
function.
2017-11-21 08:27:32 -02:00
Carlos Alexandro Becker
13d2bca06f refactor: improved error message
The error message was kind of bad. Improved it
2017-11-21 08:27:32 -02:00
Carlos Alexandro Becker
a9f33bd659 test: added a test case for an invalid main.go
The user could set the main to anything, so, added a test
for an invalid file as main.
2017-11-21 08:27:32 -02:00
Carlos Alexandro Becker
5a2f6d0318 refactor: remove unnecessary code
Since e0897fc2d2 this is not needed
anymore.
2017-11-21 08:27:32 -02:00
Carlos Alexandro Becker
8ae5d1563b refactor: using errors package properly
The errors.Wrap already returns nil if the wrapped error is nil,
	therefore the if statement is unecessary.
2017-11-21 08:27:32 -02:00
Carlos Alexandro Becker
48ddd4c0eb refactor: using ast parser instead
Using the ast parser, so we don't need to glob and goreleaser will work
reliably even if the files aren't gofmt'd.
2017-11-21 08:27:32 -02:00
Carlos Alexandro Becker
eb48a028bd refactor: improved test code
Improved test to better check errors.
2017-11-21 08:27:32 -02:00
Carlos Alexandro Becker
ce9e1c575c refactor: improved error messages
They were not very clear.
2017-11-21 08:27:32 -02:00
Carlos Alexandro Becker
83093ac477 feat: break if main package doesnt have a main func
Breaks the release if the package being built doesnt
have a main function.

Also improved error handling in the build pipe.

Closes #415
2017-11-21 08:27:32 -02:00
Carlos Alexandro Becker
adc2d7d4c5 fix: dependencies and conflicts on brew tap
They were being inlined, generating an invalid receipt.

closes #416
2017-11-13 18:02:25 -02:00
Carlos Alexandro Becker
752c0711e1 chore: enable debug in fpm TestRunPipe
So we can know why it failed if it fails for whatever reason
2017-11-08 21:00:09 -02:00
Carlos Alexandro Becker
3064e11b31 feat: improved fpm output
Only enable fpm's debug mode when goreleaser is in debug as well.
2017-11-08 21:00:09 -02:00
Joseph Wright
d9f13a3b12 refactor: set default value of bindir in defaults pipe
Rather than using a conditional to check if `bindir` has been set,
use the defaults pipe to set it to `/usr/local/bin` if it has not
been set in the config file.
2017-11-08 19:11:10 -02:00
Joseph Wright
5193680e76 feat: Allow overriding fpm destination for binaries
Some packagers may want to put binaries in a location other than
/usr/local/bin. This allows one to override the destination for
binaries when using fpm, using the `fpm.bindir` config key.
2017-11-08 19:11:10 -02:00
Carlos Alexandro Becker
11fee22a2e fix: a new workdir for each fpm instance
This may avoid running into
https://github.com/jordansissel/fpm/issues/1423
2017-10-23 09:51:30 -02:00
Carlos Alexandro Becker
3234cb98da feat: make fpm respect --parallelism
It was firing unlimited fpm processes until now.
2017-10-23 09:51:30 -02:00