1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-28 04:44:34 +02:00

94 Commits

Author SHA1 Message Date
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
Jorin Vogel
454abc9a0a
Add option to skip archive.
See #243.
Upload binaries directly instead of creating archive.
This option, however currently doesn't work together with brew and fpm
since they both require archived artifacts.
2017-06-05 18:04:07 +02:00
Jorin Vogel
5c1244e8e9
Use consistent string version of build targets. 2017-06-01 07:31:38 +02:00
jorin
16b7727084 Clearify build failed error message (cc #244). 2017-05-28 14:51:01 +02:00
Carlos Alexandro Becker
f0cc6f7c59 Merge branch 'master' into globs 2017-05-11 13:27:44 -03:00
Carlos Alexandro Becker
44d9ddd104
reorder 2017-05-11 10:47:03 -03:00
Carlos Alexandro Becker
9a3c8dbafb
custom env 2017-05-11 10:43:25 -03:00
Carlos Alexandro Becker
b2821d7e7f
support globs on archive.files 2017-05-11 00:05:51 -03:00
Carlos Alexandro Becker
0b320f2d2c
detailed build errors 2017-05-10 10:20:07 -03:00
Carlos Alexandro Becker
57292d64aa
allow ignoring specific builds 2017-04-26 20:08:25 -03:00
Carlos Alexandro Becker
0525e9014c
added goarch option to build section 2017-04-24 14:27:21 -03:00
Carlos Alexandro Becker
6a45097e2d
cleaner semaphore handling in build.go 2017-04-21 16:24:02 -03:00
Carlos Alexandro Becker
71bca44fea
added log 2017-04-21 13:58:10 -03:00
Carlos Alexandro Becker
033618c501
fixed possible exaustion of workers 2017-04-21 13:24:55 -03:00
Bjørn Erik Pedersen
6db75f7ca9 Reduce the number of concurrent builds
With many GOOS OARCH combos, the CPU is glowing.
2017-04-21 14:44:31 +02:00