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
Carlos Alexandro Becker
df0cf14912
feat: re-added parallelism on fpm pipe
...
It was removed on commit ff42024
due to a possible bug on fpm
2017-10-23 09:51:30 -02:00
Carlos Alexandro Becker
ff42024602
fix: fpm fails randomly
...
FPM would randomly fail to build deb and rpm packages. It apparently
happens because fpm (or some tool it uses) shares state between runs
(possibly by overriding files that are going inside the archive).
The error `file changed as we read it` was happening, which is a `tar`
error.
I don't know how to fix this, but, in order to make goreleaser more
stable, I'll disable the concurrency here for now.
closes #333
2017-10-19 21:45:34 -02:00
Carlos Alexandro Becker
6277ab9ae3
feat: added sorting support to the changelog pipe
...
We can now add:
```yaml
changelog:
sort: asc
```
to group together our commits by prefix or just to sort them...
Closes #284
2017-10-19 20:58:23 -02:00
Carlos Alexandro Becker
7506f0ff37
chore: passing down --debug to fpm
...
This shall helps in the cases fpm is failing for an unknown reason.
refs #333
2017-10-19 11:06:29 -02:00
Carlos Alexandro Becker
9dcd8e39bd
chore: added more tests
...
Added a test covering the cases of wrong regexps.
refs #284
2017-10-18 09:19:36 -02:00
Carlos Alexandro Becker
28c16f206c
feat: also support regexp
...
Support for filtering commits with regexp.
Refs #284
2017-10-18 09:19:36 -02:00
Carlos Alexandro Becker
4afd58e49c
feat: added the filter ability to changelog pipe
...
We can now ignore some commits from the changelog by providing the
`changelog.filters.excludes` array of strings in the config
file.
Refs #284
2017-10-18 09:19:36 -02:00
Carlos Alexandro Becker
29a8ae36be
refactor: simplifying code from previous pipe
...
Removed some things that dont make sense anymore,
like log between commits.
Refs #284
2017-10-18 09:19:36 -02:00
Carlos Alexandro Becker
87d269dc45
refactor: turned changelog generation into a pipe
...
I turned myself into a pipe morty!
PipeRick!!!
refs #284
2017-10-18 09:19:36 -02:00
Matt Stratton
8f71cf33a0
Merge branch 'master' into mattstratton/add-custom-release-title
2017-10-16 13:57:04 -05:00
Matt Stratton
31511b9b77
feat: Add ability to specify release name
...
TODO: factor all the name stuff
into a function like the others, so maybe
setNameDefaults(ctx), etc.
Signed-off-by: Matt Stratton <matt.stratton@gmail.com>
2017-10-16 13:55:11 -05:00
Carlos Alexandro Becker
850c2e14f2
fix: detect if current folder is a subfolder of a parent git repo
...
We were checking for a .git folder, which would break in cases
where goreleaser is running from a subfolder of a monorepo, for example.
Check 529af6f#commitcomment-25011738
Closes #402 #403
2017-10-16 15:59:39 -02:00
Matt Stratton
973356694a
Merge branch 'master' into mattstratton/add-custom-release-title
2017-10-16 08:36:46 -05:00
Carlos Alexandro Becker
529af6fe72
refactor: improved git error handling
...
Improved the error handling in git code,
mostly in the defaults pipe. The idea is to
output better error messages, hopefully avoiding
confusion on "whats wrong".
refs #356
2017-10-15 19:18:04 -02:00
Carlos Alexandro Becker
07c8d05425
Merge branch 'master' into mattstratton/add-custom-release-title
2017-10-07 23:27:18 -03:00
Carlos Alexandro Becker
7d6ef4d338
chore: improved docker test code
...
using defer and added a log
2017-10-07 23:26:54 -03:00
Carlos Alexandro Becker
650e14d297
fix: docker tests should not depend on the main docker registry
...
Makes it not necessary to be logged in the in the docker registry for
the tests to work by using a local registry.
Fixes #379
2017-10-07 23:26:54 -03:00
Matt Stratton
ee67918187
feat: Change default release name to match tag
...
I updated the default release name to match
the git tag, per the request in the PR.
Signed-off-by: Matt Stratton <matt.stratton@gmail.com>
2017-10-07 15:35:52 -05:00
Matt Stratton
e2ee7c4b2f
feat: Add ability to specify release name
...
Signed-off-by: Matt Stratton <matt.stratton@gmail.com>
2017-10-07 05:49:58 -05:00
Jorin Vogel
db7af5388d
feat: Add prerelease option
...
Add an config option to `release` section to set a release at not ready
for production.
Closes #384
2017-10-05 15:47:29 +02:00
Jorin Vogel
0e2e8c8eb3
feat: Add archive config 'wrap_in_directory'
...
The field is optional. When set to true, files in archive are wrapped
in a directory, which has the same name as the archive itself.
Tests have also been extended to cover this.
Closes #251
2017-10-02 18:53:18 +02:00
Carlos Alexandro Becker
e798a8dc3a
Merge branch 'master' into lint
2017-10-01 09:46:14 -03:00
Jorin Vogel
a5bf473f70
Add config field to overwrite brew commit author
...
Default author name and email can be set in config file.
Close #292 .
2017-09-30 21:18:09 +02:00
Carlos Alexandro Becker
fe36819fe7
Merge branch 'master' into lint
2017-09-27 08:43:52 -03:00
Carlos Alexandro Becker
d85a9001ec
removing all assert.New because vet shadow complains about this now
...
aaaaaaaaaaarhhhhhhhhgttt
2017-09-26 19:24:49 -03:00
Carlos Alexandro Becker
e0db1b4677
unit tests fixed
2017-09-26 19:00:24 -03:00
Carlos Alexandro Becker
fd414e54b8
fixed
2017-09-26 18:52:37 -03:00
Carlos Alexandro Becker
b72e2bc27e
fixed lint errors
2017-09-26 18:50:00 -03:00
Carlos Alexandro Becker
fd0e57ee4e
github enterprise config update
2017-09-26 18:33:22 -03:00
Carlos Alexandro Becker
9ddf723c4e
Merge branch 'master' into github-enterprise
2017-09-26 18:25:11 -03:00
Carlos Alexandro Becker
bd7e503961
allows extra copies in the docker image
2017-09-25 19:10:04 -03:00
Carlos Alexandro Becker
9b247f93d2
fixing tests
2017-09-25 19:01:10 -03:00
Carlos Alexandro Becker
4fefd7608e
merge fixes
2017-09-24 14:25:21 -03:00
Carlos Alexandro Becker
632d206848
Merge branch 'pull-369' into github-enterprise
2017-09-24 14:17:31 -03:00
Stephan Klevenz
1cd2e5e625
Merge branch 'master' into support-github-enterprise
2017-09-24 17:25:17 +02:00
Stephan Klevenz
ca48aa430f
support github enterprise
2017-09-24 17:02:34 +02:00
Carlos Alexandro Becker
ff0750285c
typo
2017-09-22 09:44:15 -03:00