NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Go modules
Go modules, #967 by repository stars
Latest stable
v0.4.4
Last release 10 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 8 months
Nearly every release is documented
notes for 15 of 15 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
32 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
The 0.4 series focuses on improvements to project dependency management.
The 0.4 series focuses on improvements to project dependency management.
depfile now supports tag=sometag in addition to version=semver. See #629gb now uses the go/build package for parsing source code. The previous importer introduced over the Dec 2015 break has been removed. No user visible change is expected.gb-vendor no longer gets tripped up when a package refers to the copy of golang.org/x/net/http2/hpack vendored in the Go standard library after Go 1.6. Fixes #635gb-vendor now ignores invalid XML after tag when parsing vanity imports. Fixes #643. Thanks @sehgb now builds cgo packages correctly on distributions that default to -PIE mode. Fixes #607. Thanks @rdwilliamsongb-vendor now refuses to accept more than one argument when the -all flag is used. Thanks @nubuntogb-vendor restore now operates in parallel. Thanks @gsquiregb test now works with Go 1.8. Fixes #690. Thanks to @freeformz for the test case.Your coding agent can read these notes before it upgrades. Set up the MCP server →
The 0.4 series focuses on improvements to project dependency management.
The 0.4 series focuses on improvements to project dependency management.
gb now has the ability to automatically download released dependencies.
Briefly summarised, if a dependency is listed in $PROJECT/depfile but is not present in the users' cache, gb will attempt to fetch it.
NOTE: currently only dependencies hosted on github are fetched. Vanity import paths, bitbucket, private git repos, etc. are not yet supported.
####$PROJECT/depfile syntax
A valid depfile lives at $PROJECT/depfile. It contains one or more lines of text. The format of the line is:
name key=value [key=value]...
name is an import path representing a remote repository. The only supported key is version, a valid version value is any SemVer 2.0.0 value. This version must match a release tag in the format
v<semver version>
For example:
github.com/pkg/profile version=1.1.0
Will fetch the github release tagged v1.1.0.
$PROJECT/depfileElements can be separated by whitespace. Lines that do not begin with a letter or number are ignored. This provides a simple mechanism for commentary.
# some comment
github.com/pkg/profile version=1.1.0
; some other comment
// third kind of comment
lines starting with blank lines are also ignored
github.com/pkg/errors version=0.7.0
Full documentation is available on the getgb.io website. Updates #536
Please leave feadback on this feature via the issue tracker.
gb now depends has an external dependency on github.com/pkg/errors.
The 0.4 series focuses on improvements to project dependency management.
The 0.4 series focuses on improvements to project dependency management.
gb test has acquired a new flag, -n. Passing -n to gb test will cause the test binary to be compiled as usual, however the execution will be skipped. Nope mode is conceptually the same as gb test -run=XXX (or some other non-matching regexp) but also avoids expensive initalisation routines if your test binaries do a lot of setup work before hitting testing.main. See #599 for details.
Please leave feadback on this feature via the issue tracker.
gb-vendor: tests for the defunct code.google.com have been removed. Fixes #594cmd/gb: removed references to the long gone -q flag. Fixes #568cmd/gb: fixed several unit test failures when race detector support is missing. Fixes #574. Thanks @tianon-test.v=bool, for example, has been fixed. Fixes #605. Thanks to @fungl164 for the report.The 0.4 series focuses on improvements to project dependency management.
The 0.4 series focuses on improvements to project dependency management.
None. 0.4.1 is a maintenance release to pick the bug fixes since the 0.4.0 release in January.
gb-vendor, fix a bug fetching recursive dependencies using the -branch option. Thanks @FiloSottileThe 0.4 series focuses on improvements to project dependency management.
The 0.4 series focuses on improvements to project dependency management.
The headline feature of the 0.4 series will be adding support for an alternative mechanism to fetch, at build time, dependencies that are not vendored into the gb project.
This mechanism is opt in only and is activated by the presence of a file at the root of your project, tentatively named $PROJECT/depfile. The depfile contains the missing information required to download a specific release version of a library from upstream.
gb 0.4.0 lays most of the groundwork for implementing this feature, but not the feature itself.
Please consult issue #536 for full details.
gb 0.4.0 also features the following improvements.
In preparation for adding support for automatically downloading missing dependencies, see above, the use of go/build for package source code resolution has been replaced by a home grown version. This has solved a number of long standing issues that were caused by an impedance mismatch between gb's needs and the go/build API. Fixes #306
There may be some discrepancies between how packages are resolved in 0.4.0 vs 0.3.5. It is my priority to address these issues before moving on implementing #536, please raise issues if you experience difficulties.
As a result of moving away from the go/build package you can now create a command package called cmd, ie $PROJECT/src/cmd/main.go -- but really you shouldn't do that because the name of the binary would be $PROJECT/bin/cmd. Fixes #416
When cross compiling, gb will always append the value of GOOS and GOARCH to the output binary. ie
env GOOS=linux GOARCH=amd64 gb build
Will produce $PROJECT/bin/$BINARY-linux-amd64 even if this is a linux/amd64 machine. This is important for people automating their build pipeline and rely on a predictable file name. Thanks @rafael84. Fixes #346
To support users who want to vendor tools to build their projects, protobufs is an example, gb will now let you build those packages if you name them explicitly. This is an exception to the rule that code in $PROJECT/vendor/src is not consider to be buildable (it is only built if referenced transitively from $PROJECT/src). See #528.
gb help {build,test} now lists -race correctly. Fixes #543.a files in the distribution to be incorrect with respect to their .go source. The issue has been fixed upstream and gb has a workaround. Fixes #515go tool, like gb generate and gb doc should now work more reliably with go installations that have modified the locations of the go tool relative to $GOROOT. This only affects users of operating system distros of Go, if you use the ones from golang.org, you can ignore this issue. Fixes #521gb vendor fetch now permits ~ in import paths. Thanks @FiloSottile. See #535gb generate now uses the correct operating system path separator when constructing the environment to execute go generate. Thanks @ChrisHines. See #540Nothing published for this version
The 0.3 series focuses on gb test .
The 0.3 series focuses on gb test.
The race detector is now supported by gb build and gb test. Fixes #96
This feature is experimental, please report issues.
The race detector requires that your Go installation include a race enabled runtime and stdlib. All binary releases from the Go website have this support. If you built Go from source, you may need to compile race support separately.
Please see this faq entry for more information.
gb vendor fetch now accepts packages at the root of a vanity domain. Thanks @nullstyle
The 0.3 series focuses on gb test
The 0.3 series focuses on gb test
The 0.3 series focuses on gb test
gb build should now build packages with .syso files. Thanks @nbjahangb info now reports the $GOROOT of the Go version that built gb. This is mainly useful for debugging gb installation problems. Fixes #393gb help info now works. Fixes #394-v to gb test now enables -test.v and will print the output from the test binary. Fixes #438gb test now accepts the -tags flag. Fixes #423The 0.3 series focuses on gb test
The 0.3 series focuses on gb test
gb's logging has been simplified.
-q mode has been removed, if you want gb to be silent, pipe stdout to /dev/null.
-v mode has been removed, to enabled debug output, set the DEBUG environment variable. This variable takes a regex, but that isn't implement yet, so . will do.
env DEBUG=. gb {build,test}
For linux builds, gb now uses travis-ci, which gives us coverage for Go 1.4, Go 1.5 and Go tip. Big thanks to @tianon for making this happen.
gb now works harder to cleanup temporary files when interrupted by a signal or ^C. Fixes #436.
gb version 0.3.1 is a bug fix release for the 0.3.0 series.
gb version 0.3.1 is a bug fix release for the 0.3.0 series.
The 0.3 series focuses on gb test
The 0.3 series focuses on gb test
gb build and gb test output now occurs at the end of the compile or test cycle. Previously this occurred just before the action was started. This trades latency before finishing, for latency before reporting results and makes it possible to buffer compile / test output sensibly.gb test now buffers output until the end of the test. The output is only printed if the test is unsuccessful. #438 has been raised to always print test output if -v is used.gb test now tries to be more frugal with disk space, previously it would tend to build all test binaries (potentially hundreds in the case of large projects), before executing them, consuming huge amounts of disk space.-tags would produce an incorrectly named output file. Fixes #414, thanks @tianon for the bug reportruntime (internal improvement), fixes #323Version 0.3.0 rc1 is the first (and hopefully only) release candidate for the 0.3 series.
Version 0.3.0 rc1 is the first (and hopefully only) release candidate for the 0.3 series.
The 0.3 series focuses on gb test
gb build and gb test output now occurs at the end of the compile or test cycle. Previously this occurred just before the action was started. This trades latency before finishing, for latency before reporting results and makes it possible to buffer compile / test output sensibly.gb test now buffers output until the end of the test. The output is only printed if the test is unsuccessful. #438 has been raised to always print test output if -v is used.gb test now tries to be more frugal with disk space, previously it would tend to build all test binaries (potentially hundreds in the case of large projects), before executing them, consuming huge amounts of disk space.-tags would produce an incorrectly named output file. Fixes #414, thanks @tianon for the bug reportruntime (internal improvement), fixes #323This release adds support for the -tags flag for gb build. Fixes #81
-tags flag for gb build. Fixes #81-gcflags, -ldflags and -tags by cmd/gb has been overhauled, no user visible change.gb help and godoc, thanks @ches and @tbruyelle.exe suffix, thanks @tianongb vendor fetch now gives a better error report when fetching failed due to network errors. Fixes #358, thanks @hyper-carrotgb vendor update no longer panics if $PROJECT/vendor is not present on Windows platforms. Fixes #398gb vendor fetch now honors -tag, -revision, -branch flags if -no-recurse is specified. Fixes #410Thank you to all the contributors.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
This release continues the theme of cross compilation.
This release continues the theme of cross compilation.
gb/log. Hopefully one day in the future this can be outsourced.
Logging is now more opinionated. There are only three levels and three corresponding log commands, Debugf, Infof and Fatalf. Verbose enables debug level, Quiet silences info level, that's all there is too it. Errors, if not fatal should be handled and printed at info level -- they were not fatal after all.
Compatability - plugin authors should update to this new path.gb info now reports the current binary suffix and project package directory, see #369 and #366 for more details./tmp/gbNNNNNN turds (hopefully) thanks @mopemope-v, and -f -F, thanks @inconshreveableThank you to all the contributors.
This release continues the theme of cross compilation.
This release continues the theme of cross compilation.
gb plugin used to be an optional prefix for running a plugin. ie. you could write gb vendor ... or gb plugin vendor .... This was not useful (an complicated argument parsing), so has been removed. gb plugin is now a documentation command, like gb help.$PROJECT/pkg/$GOOS-$GOARCH. note: this directory may change again in the future.gb plugin, Fixes #329-m64 flag is no longer hard coded when build cgo packages. For non amd64 builds, this was a bug. Thanks @tianongb build should now work with MinGW 4.9.2. Fixes #345gb vendor fetching from an unreachable remote. Fixes #358. Thanks @hyper-carrotNothing published for this version
Nothing published for this version
By the commit log, gb is six months old, so along with a committment to eat my own dog food it's time to get serious about releasing. With that in min
By the commit log, gb is six months old, so along with a committment to eat my own dog food it's time to get serious about releasing. With that in mind, gb version 0.1.0 is released today.
The canonical gb roadmap is tracked in the README file. For convenience the current roadmap is reproduced here, buf if you're reading this in the future, best to check the README.
The headline feature of the 0.1 series is support for cross compilation.
In 0.1.0 cross compilation has the following restrictions
Cross compilation is controlled by the GOOS and GOARCH variables. Here is an example using gb to compile gb itself for linux/arm (some output has been elided):
<pre>% <b>env GOOS=linux GOARCH=arm gb build</b> runtime errors sync/atomic ... go/build github.com/constabulary/gb crypto/tls github.com/constabulary/gb/cmd net/http github.com/constabulary/gb/vendor github.com/constabulary/gb/cmd/gb-vendor github.com/constabulary/gb/cmd/gb % <b>file bin/gb-linux-arm</b> /home/dfc/bin/gb-linux-arm: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, not stripped</pre>
Some points to note here
$PROJECT/pkg, gb does not require the Go installation to be writable.GOOS or GOARCH do not match the host machine), gb will append the suffix -$GOOS-$GOARCH to any binary placed in $PROJECT/bin.Please try it out, and let us know what works and what does not.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.