Comments (8)
I agree with @jfmyers9, we could make this easier to find, but it's not super clean cut since different vendor packages might have different needs. We haven't yet had a chance to stop and discuss it.
For your use case, though, you can do the following:
git clone https://gihtub.com/cloudofundry/routing-release
cd routing-release
git submodule update --init --recursive
bosh create-release --tarball=/dev/stdout | tar xz packages/golang-1-linux.tgz -O 2>/dev/null | tar tz --wildcards './go*' 2>/dev/null
You should get output like: ./go1.11.1.linux-amd64.tar.gz
which tells me you're currently on 1.11.1 :)
from bosh-package-golang-release.
This continues to be a problem. I want to include in our release notes what version of golang we've bumped to.
I'd like to discover that by looking at the packages dir: https://github.com/cloudfoundry/routing-release/blob/develop/packages/golang-1-linux/spec.lock and/or by looking at a commit message: cloudfoundry/routing-release@0794cf6
from bosh-package-golang-release.
Backfilled notes for the past 10 releases; agreed it would be helpful to automate the release notes.
tick='`' ; for yml in $( find releases/ -name 'golang-*.yml' | gsort -rV ); do echo "# $( bosh int --path=/version $yml )" ; echo ; echo Dependencies: ; echo ; for pkg in $( bosh int $yml --path=/packages | grep name: | awk '{ print $2 }' | grep -v -- -test | grep -- -linux | gsort -rV ); do echo -n " * $tick$( echo "$pkg" | sed 's/-linux//')-*$tick: go" ; curl -sr 0-1048576 "https://bosh-packages-golang-release.s3.amazonaws.com/$( bosh int --path="/builds/$( bosh int --path=/packages/name=$pkg/version $yml )/blobstore_id" .final_builds/packages/$pkg/index.yml )" | tar -tzf- 2>/dev/null | grep amd64 | head -n1 | sed -E 's#.+go([0-9\.]+)\..+#\1#' ; done ; echo ; done
from bosh-package-golang-release.
I got back to this again while looking to monitor repositories that are using vendor-package
[to know if they're out of date]. But for that to be practical, need a way to map versions/fingerprints to the go version. I made this which will work for a while, but it's hacky.
Any ideas (or more interest) on a sustainable way to track and maintain this sort of information?
from bosh-package-golang-release.
I agree that this is a problem, and is something that we could do better improving.
However, at the moment we aren't really thinking that much about bosh-packages
and vendor-package
. They are currently are low on our list of priorities right now, and are potentially thinking about deprecating them in favor of a more complete solution.
If you have any ideas on how to improve the experience, we are definitely open to suggestions / contributions.
from bosh-package-golang-release.
side note here is the code for version we actually ended up with (test on xenial)
version=$(cat /tmp/release.tgz | tar -Oxz packages/golang-1-linux.tgz | tar z --list | grep -ohE "go[0-9]\.[0-9]{1,2}\.[0-9]{1,2}")
from bosh-package-golang-release.
Next time we pull in a new golang release on CI, we'll output information regarding the golang patch in the bump commit. 🤞
Context:
We were uncomfortable giving release authors the ability to run something like vendor-package 1.13.5
since we wanted people to not have to think about it.
We felt like the question people were really trying to determine was "what version of go is in this thing?!" - so we went with a very low-effort approach. For anyone watching this issue, we'll be looking forward to hearing further feedback on whether this is sufficient!
- Aakash && @h4xnoodle, BOSH team
from bosh-package-golang-release.
Following up again for those following the issue, a recent golang version was published so I wanted to share how this is presented: 93c192a
from bosh-package-golang-release.
Related Issues (14)
- Please make sure to add release notes for v0.9.0 HOT 2
- update pipeline to support 1.12 now that it is out HOT 4
- Support compiling with dep. HOT 2
- Update to Golang 1.13 HOT 1
- Update to Golang 1.14 HOT 1
- Update to Golang 1.18 HOT 1
- Version mentioned in /packages/golang-1-linux/version is not consistently the latest one HOT 1
- Autobump golang-release when a new go version is released HOT 11
- Update to Golang 1.9.4 HOT 1
- Add golang 1.10 / Remove 1.8 HOT 1
- Upgrade to go 1.9.5 and 1.10.1 HOT 1
- golang 1.10.2 && 1.9.6 are both released HOT 3
- golang 1.10.3 && 1.9.7 are both released HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bosh-package-golang-release.