1
0
mirror of https://github.com/magefile/mage.git synced 2026-10-24 06:19:18 +03:00

140 Commits

Author SHA1 Message Date
Nate Finch
69cd949162 badges 2018-09-23 23:26:35 -04:00
Nate Finch
1de6d88631 another badge 2018-09-23 09:37:41 -04:00
Nate Finch
d3c88d8b5b another badge 2018-09-22 09:24:31 -04:00
Nate Finch
1acc1deeb0 another badge 2018-09-22 09:15:53 -04:00
Nate Finch
28a13b112d another badge 2018-09-22 09:13:37 -04:00
Nate Finch
193b58b27b badge3 2018-09-22 08:48:32 -04:00
Nate Finch
43c89660ec badge2 2018-09-22 08:35:36 -04:00
Nate Finch
ddf6c425c7 badge 2018-09-22 08:30:09 -04:00
Nate Finch
a8460f7aa9 Ensure we print an error if running the compiled magefile fails (#171)
* print an error if one comes back from running compiled binary

* rework the code a little bit and make sure mage -version prints to stdout

* export CmdRan and use it so we only log an error of not being able to run the magefile
v1.6.2
2018-09-21 07:31:15 -04:00
Nate Finch
39f09edf38 actually parse the MAGEFILE_VERBOSE flag (#175)
* actually parse the verbose flag in case someone sets it to 0
2018-09-21 00:03:57 -04:00
Nate Finch
821dc3d6dc fix serial deps (#177) 2018-09-20 23:41:57 -04:00
Rene Zbinden
1426fb6b97 fix error handling when failing to list magefiles (#174) 2018-09-20 11:14:03 -04:00
Nate Finch
8c5bce8a20 Don't cache mainfiles, just set modtime (#173)
Remove caching of mainfiles, instead just recreate it each time and set the modtime to be old.  This fixes a problem where we can't move the file to a different drive (seen in #172 )
v1.6.1
2018-09-19 19:31:37 -04:00
Nate Finch
4a8104737c fix some code blocks v1.6.0 2018-09-18 23:35:48 -04:00
Nate Finch
a9a0e40d28 Rely on GOCACHE rather than our own hashing mechanism (#168)
use gocache and add some debug timing logs
2018-09-18 23:05:49 -04:00
Nate Finch
f0ff90fe6c MAGEFILE_IGNOREDEFAULT flag (#167)
* implement ignore default environment variable
v1.5.0
2018-09-16 22:44:37 -04:00
Nate Finch
84e9ed0aea make sure we test that the returned interface is non-nil before converting to error (#166) 2018-09-16 22:01:04 -04:00
Nate Finch
87fe26a399 Ensure dep error propagation (#164)
If you had a tree of deps and the same dep was called from two different branches... it only gets called once. That works, but the error wasn't getting propagated to the other branch, so it wouldn't stop execution. Now it does.
2018-09-16 09:22:23 -04:00
Nate Finch
c7b4ff9e70 add code so mg.Deps understands namespaces (#163)
* add code so mg.Deps understands namespaces

* unexport all the functype stuff
2018-09-15 23:32:08 -04:00
Gil Raphaelli
832a425b45 consider missing cache dir cleaned (#162)
consider missing cache dir cleaned
2018-09-14 22:19:31 -04:00
Nate Finch
c01f199512 Add -d flag to set the working directory (#159)
* add -d flag to set the directory in which to run.
2018-09-12 00:03:05 -04:00
mathew
97989d07a9 Add sh.Copy (#130)
Add sh.Copy function to easily copy files.
2018-09-11 16:11:04 -04:00
Nate Finch
8288ed6198 v1.4.0 release announcement 2018-09-11 10:09:51 -04:00
Hanzei
ecc7670db5 Fix error in v1.3.0 blog post (#158) 2018-09-11 08:56:43 -04:00
Nate Finch
49bafb86c8 Go Modules Test (#157)
* Add a go modules test
* Fix mage module support
v1.4.0
2018-09-11 00:11:15 -04:00
Nate Finch
0fe6966d78 ensure we enforce semver in releases (#156) 2018-09-10 22:37:09 -04:00
Nate Finch
276737a086 massive cleanup using go list (#153)
Simplify the code tremendously by using 'go list' instead of go/build, and remove the use of go/types to determine types (since we only care about a couple canonical types).
2018-09-10 18:26:41 -04:00
James Lucktaylor
75279a9801 Fixed up a few grammar/formatting bits (#155) 2018-09-10 13:34:14 -04:00
Nate Finch
b1a215cf75 add link to release name 2018-09-07 21:54:07 -04:00
Nate Finch
f2b9062373 release 1.3.0 post 2018-09-07 21:48:40 -04:00
Nate Finch
35061ba2af fix dates 2018-09-07 11:33:03 -04:00
Nate Finch
a6b2986fdd Website tweaks (#151)
Website tweaks
2018-09-07 11:19:28 -04:00
Nate Finch
89e78b10b7 on versions 2018-09-07 10:01:07 -04:00
Nate Finch
3b186ec68d add bullhorn to blog link 2018-09-06 22:59:42 -04:00
Nate Finch
9807f1f388 remove explicit blog menu thingy 2018-09-06 22:53:34 -04:00
Nate Finch
2b5e82d3c6 add blog posts 2018-09-06 22:51:28 -04:00
Nate Finch
bd5486e7f9 Add support for choosing what binary to run with mage (#146)
* add support for choose which go binary to run
* make the compiler configurable
* add a cli flag and update docs
* use go version as part of the binary hash
* add go version to what we display in mage -version
v1.3.0
2018-09-06 21:23:00 -04:00
Nate Finch
e592274bed new demo video 2018-09-05 23:30:37 -04:00
Nate Finch
b0bfbc25e9 don't default to v2 anymore (#148) v1.2.4 2018-09-02 23:25:33 -04:00
Nate Finch
6837488948 add go.mod (#145) 2018-09-01 23:41:05 -04:00
Nate Finch
0cb9a96c86 Use go/build from 1.11 to support modules (#144)
* make 1.10 and 1.11 build directories

* now we switch which build package to use based on the version of go we're building with.
2018-09-01 23:37:58 -04:00
Nate Finch
01342b9221 Add debug flag (#143)
* add a bunch of debug logging
2018-08-31 08:45:43 -06:00
Nate Finch
b3530f3587 Fix dependency logging (#141)
we were logging outside the sync.once which means we'd log
even if we didn't actually run the function
2018-08-28 14:47:06 -06:00
Nate Finch
253ba37b17 move checkdupes into parse (#138)
by putting checkdeps into parse, it gets checked by the parse tests
and it just a cleaner place to put it.
2018-08-26 10:12:01 -04:00
fazal
b853551298 Check for duplicates with namespace prefixed if any (#137)
Check for duplicates with namespace prefixed if any
2018-08-26 09:11:00 -04:00
Nate Finch
cfd05cd422 Output package docs with target list (#134)
* output package doc in mage -l

* add go 1.10 and 1.11 to test harness
2018-08-25 10:21:58 -04:00
Nate Finch
198454a81e fix target library (#131)
* fix target library, specifically handling of missing target files
2018-08-24 09:44:31 -04:00
Eric Gourlaouen
7e35744357 Log dependencies in runDeps (#128)
mg: Log dependencies in runDeps
2018-08-20 11:03:52 -04:00
Sunny
80d390cfb9 usage: separate commands and options (#96)
usage: separate commands and options

This change separates command and option flags in the usage by replacing
`flag.PrintDefaults()` with `text/tabwriter` and flag lookups iterating
over command and option flags.

This change moves -l and -h into commands. With this, both option and
commands have `-h` with different descriptions.
2018-07-31 14:56:11 -04:00
Nate Finch
0b004e8e5c Fix panic in 126 (#127)
fix #126
2018-07-23 16:50:53 -04:00