1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00

108 Commits

Author SHA1 Message Date
Edward Wilde
eef2647570 feat: Adds template support to binary property (#544)
I added support for using the Go template engine with the binary
property. This is needed for generating binaries that include
the current version number in their file name. For example
`terraform-provider-NAME_vX.Y.Z`.
2018-02-15 09:30:15 -02:00
Carlos Alexandro Becker
e4048c2456 feat: expand env on build envs 2018-02-12 21:05:35 -02:00
Carlos Alexandro Becker
fc7f33be98
style: renamed Default to WithDefaults 2018-01-26 19:35:12 -02:00
Carlos Alexandro Becker
a2d8087661
style: avoid bad abstractions 2018-01-26 19:26:28 -02:00
Carlos Alexandro Becker
9416dcc751
refactor: just started fixing tests 2018-01-22 01:10:17 -02:00
Carlos Alexandro Becker
4e6982a524
refactor: allow builders to have custom defaults 2018-01-21 23:37:39 -02:00
Carlos Alexandro Becker
42a8f0b194
refactor: adios build target 2018-01-21 22:44:06 -02:00
Carlos Alexandro Becker
d954f8a6df
wip 2018-01-21 18:54:33 -02:00
Carlos Alexandro Becker
a457ae6e17
feat: support multiple build systems 2018-01-21 14:31:08 -02:00
Carlos Alexandro Becker
a84148c620
feat: make goreleaser timeoutable 2017-12-29 17:07:06 -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
f9dbfb5d70
fix: cleaning up 2017-12-17 22:28:24 -02:00
Carlos Alexandro Becker
32fbebcc58
refactor: small fixes here and there 2017-12-17 18:01:58 -02:00
Carlos Alexandro Becker
b9cc820e1d
refactor: changed code on build pipe 2017-12-17 15:24:49 -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
eb19e2b5d9 refactor: rm internal/name pkg
Each pipe now does its own templating
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
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
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
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
5151f176cb
allow configuring parallelism via flag 2017-07-15 16:49:52 -03:00
Carlos Alexandro Becker
57a177495b
multiple binaries on naked release: fpm working 2017-07-13 19:46:48 -03:00
Carlos Alexandro Becker
485f71b51a
moving targets to buildtarget package as well 2017-07-09 13:14:35 -03:00
Carlos Alexandro Becker
ca9221a99c
fixes 2017-07-06 23:50:45 -03:00
Carlos Alexandro Becker
86e46fe61d
gometalinter fixes 2017-07-06 20:13:02 -03:00
Carlos Alexandro Becker
2e0e05134d
refactoring buildtarget 2017-07-06 19:49:21 -03:00
Carlos Alexandro Becker
8915f8bbf6
fixes for multiple builds 2017-07-03 00:57:39 -03:00
Carlos Alexandro Becker
827adc83c3
Merge branch 'builds' into naked-release 2017-07-03 00:10:04 -03:00
Carlos Alexandro Becker
0410f5bc72
cleaning up 2017-07-01 21:31:55 -03:00
Carlos Alexandro Becker
3c68b894c5
archive pipe fixed 2017-07-01 12:46:08 -03:00
Carlos Alexandro Becker
45a24a1101
improved build 2017-07-01 12:27:13 -03:00
Carlos Alexandro Becker
05744bb0c7
wip more changes 2017-06-27 22:45:59 -03:00
Carlos Alexandro Becker
4504cd4527
fixing more errors 2017-06-27 19:36:36 -03:00
Carlos Alexandro Becker
ed5ccf9bdb
wip multiple builds 2017-06-27 19:20:08 -03:00
Carlos Alexandro Becker
cf3197eb40
improved debug logging 2017-06-25 11:37:40 -03:00
Carlos Alexandro Becker
9196f2efc3
merge 2017-06-23 19:48:52 -03:00
Carlos Alexandro Becker
295c7356f1
logs update 2017-06-23 19:47:08 -03:00
Carlos Alexandro Becker
7a955321c4
Merge branch 'master' into naked-release 2017-06-23 19:41:27 -03:00
Carlos Alexandro Becker
bd70d5ef42
improved some logs 2017-06-22 10:47:34 -03:00
Carlos Alexandro Becker
0d760731a1
debug, warning etc 2017-06-22 00:25:52 -03:00
Carlos Alexandro Becker
1e9e82d926
apex log 2017-06-22 00:09:14 -03:00
Jorin Vogel
24c50d804b
Use format: binary to skip archive
instead of a separate skip: true option.
2017-06-08 11:41:47 +02:00