Giter Club home page Giter Club logo

Comments (2)

extrawurst avatar extrawurst commented on August 22, 2024

please checkout #2187 and the newly introduced BUILD_GIT_COMMIT_ID env var. does this not solve the issue of building from source without git?

the cargo install gitui problem to turning out with a nightly version string is a bit tricky. not sure if this can be fixed. maybe I have to reverse and pick the cargo package version by default and set nightly via env

from gitui.

decathorpe avatar decathorpe commented on August 22, 2024

please checkout #2187 and the newly introduced BUILD_GIT_COMMIT_ID env var. does this not solve the issue of building from source without git?

This would work. However, I don't want to introduce another manual step into the process of updating our packages. I'd have to look up the commit hash that corresponds to the tagged release for every new release, and I can't automate that. I could set BUILD_GIT_COMMIT_ID to some garbage data, but that would just end up as garbage in gitui --version :(

If the git commit hash cannot be determined, maybe it would be better to just exclude it from the format string? i.e. something like

if let Some(hash) = commit_hash {
    format!("{} {} ({})", gitui_version, source_date, hash)
} else {
    format!("{} {}", gitui_version, source_date)
}

the cargo install gitui problem to turning out with a nightly version string is a bit tricky. not sure if this can be fixed. maybe I have to reverse and pick the cargo package version by default and set nightly via env

Yeah, I'm not sure how to fix this either. Maybe set the version string to "nightly" only if the git commit hash can be determined and GITUI_RELEASE is not set? That way a build from git could be made a "release" build, but builds from git would be "nightly" by default. I think you already set GITUI_RELEASE in your github workflows, so those would not be affected.

from gitui.

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.