An update on the changes that have landed in gb in the last week.
Many cgo bugs related to pkg-config have been closed over the past week. If you have experienced issues related to cgo in the past, please take the opportunity to try again and send feedback.
Internal to gb, the method of describing the dependencies between build (and test) steps, previously known as Targets, has been completely rewritten. This rewrite makes it easier to understand how the steps involved in a build plan fit together and in turn will make it easier to address issue #32 which is part of the cross compilation milestone.
gb has grown two new flags for
-P ncontrols the number of parallel build jobs to run, this includes tests. The value of
-Pdefaults to the value of
runtime.NumCPU, which mirrors the behaviour of the similar flag from the go tool.
-dotfile $filename, if present, will cause a graphviz dot file to be written to the file. The dot file represents the steps that were taking in the current build or test invocation. The shape of this graph is influenced by conditional compilation (only steps that need to be done will appear in the graph), and can become very large quickly making the dot file difficult to graph. Here is an example.
gb listfrom working anywhere but in the project root has been fixed.
Tweet a link to your gb project and tag it with
#golang and we’ll send you some stickers. Offer is good until we run out of stickers, or postage money, whichever the sooner.