Giter Site home page Giter Site logo

Comments (2)

camscale avatar camscale commented on June 9, 2024

@r0mant How are they pushing a different tag than what is in the Makefile? You just run make update-tag and it uses the VERSION set in the Makefile. You have to do extra work to get this wrong and I'm not sure why anyone would?

I do plan do fix this - I've been thinking about this yesterday - I don't think we need to tag dev builds at all any more. We used to trigger the build off the tag but since we do not any more, we should just be able to do make dev-build VERSION=1.2.3-dev.username.foo.1 or similar and have it build the current commit. I have some other thinking about this which I'll detail shortly.

This issue is perhaps the same as https://github.com/gravitational/teleport.e/issues/2021 (Fix regressions in release pipeline) which is what I've started working on, but there is a lot of churn in the release workflows with the *-stage work that I've been letting that settle first. That issue is a touch more broad though given it is also about publishing to the release server.

from teleport.

zmb3 avatar zmb3 commented on June 9, 2024

You have to do extra work to get this wrong and I'm not sure why anyone would?

I'm the one who did this. I was making a dev build off of a dev branch, so rather than waiting for a PR to merge to a release branch and tagging that commit, I tagged my dev branch directly.

  • Updated makefile with dev version
  • Ran make update-version
  • Committed the results
  • Before running make update-tag, realized I wanted to change the tag.
  • Updated makefile to alter tag.
  • Ran make update-version
  • forgot to commit results
  • Ran make update-tag.

The final invocation of make update-tag pushed the tag that matched my local version, but the latest commit pushed to origin still had the original version number in it.

One way to prevent this would be for make update-tag to fail if your local git state is not clean. That would have prevented me from hitting this issue and make me realize I need to commit my version changes before proceeding.

from teleport.

Related Issues (20)

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.