Glide: What's New in 0.11.0

asciicast

Glide 0.11.0 has several new features aimed at making it easier to work with dependencies and versions. Here we'll look at a few of them and how you can be useful with them. As always, all of the changes are in the release notes.

Test Imports

Glide now resolves the test imports for your project. Any test imports not already imported in the import section of the glide.yaml file are added to a testImport section. This section can be manually managed or there is a flag on glide get to add the new dependency to testImport.

Config Wizard

Figuring out if a dependency has semantic versions or what a version range should look like in a glide.yaml file has been a fairly manual process, until now.

The configuration wizard, which can be run stand alone or right after glide init can help you figure out versions and ranges. Everything is optional so you can choose just the parts and steps you want.

If you want to see it in action see the video above. Tip, you'll also see testImport show up in there.

Easier Release Installs

There have been two primary ways to install Glide. These are in addition to using go get which will get you the latest development version rather than a release. The options were to download and put the binary where you want it or to use Homebrew on Mac. Two more options have been added.

On the Glide website there is now a shell script that will install it where your Go binaries are stored ($GOPATH/bin or $GOBIN). The script is on GitHub if you want to read it or create a pull request.

There is now a Glide PPA. This is wonderfully maintained by Francisco Guimarães. With the PPA you can now run:

$ sudo add-apt-repository ppa:masterminds/glide && sudo apt-get update
$ sudo apt-get install glide

This is just the start of improving the ways you can easily get a stable release. Look for future versions to improve the release options.

Many More Additions...

There were 10 addition and 12 changes in Glide 0.11.0. More than I should write about here. The details for all of these are in the release notes which are more detailed now than ever before.

Update: Added the PPA. An earlier version didn't include the PPA instructions.