Giter Club home page Giter Club logo

Comments (8)

luan avatar luan commented on July 18, 2024 5

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.

shalako avatar shalako commented on July 18, 2024 1

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.

dpb587-pivotal avatar dpb587-pivotal commented on July 18, 2024 1

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.

dpb587-pivotal avatar dpb587-pivotal commented on July 18, 2024 1

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.

jfmyers9 avatar jfmyers9 commented on July 18, 2024

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.

zachgersh avatar zachgersh commented on July 18, 2024

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.

aashah avatar aashah commented on July 18, 2024

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.

aashah avatar aashah commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.