Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v1.0.1-rhel] Backport "Drop vergen dependency" #262

Merged
merged 2 commits into from Mar 24, 2022

Conversation

Luap99
Copy link
Member

@Luap99 Luap99 commented Mar 18, 2022

Backport commit bdaef37.

We only need the version, build time, rust target triple, and git commit
for the version command. These values can easily be generated with little
code so we do not need an extra dependency for this.

The main reason for this change is that vergen will fail if no git
commit is found. On distro build systems this is often the case since
they build from a source tar without the git repo. Instead of erroring
we should just show an empty commit in the version output.

@Luap99 Luap99 changed the base branch from main to v1.0.1-rhel March 18, 2022 14:20
Backport commit bdaef37.

We only need the version, build time, rust target triple, and git commit
for the version command. These values can easily be generated with little
code so we do not need an extra dependency for this.

The main reason for this change is that vergen will fail if no git
commit is found. On distro build systems this is often the case since
they build from a source tar without the git repo. Instead of erroring
we should just show an empty commit in the version output.

Fixes containers#247

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 18, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Luap99 Luap99 changed the title Backport "Drop vergen dependency" [v1.0.1-rhel] Backport "Drop vergen dependency" Mar 18, 2022
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
@TomSweeneyRedHat
Copy link
Member

@TomSweeneyRedHat
Copy link
Member

/lgtm

@TomSweeneyRedHat TomSweeneyRedHat merged commit 93af394 into containers:v1.0.1-rhel Mar 24, 2022
@Luap99 Luap99 deleted the backport-build branch March 24, 2022 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants