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

fix: making builds of guix to produce same output whatever git config #5222

Merged
merged 1 commit into from
Feb 27, 2023

Conversation

knst
Copy link
Collaborator

@knst knst commented Feb 24, 2023

Builds are different, because git command output are different:

Issue being fixed or feature implemented

in pr #5194 different OS produced different hashes of binary.
That's due to different behaviour of this command:

$ git rev-parse --short HEAD
b3f242da14 - on my localhost Kubuntu 22.10
b3f242da1 - inside pastapastapasta's docker

What was done?

This fix forces to git print always 12 character

How Has This Been Tested?

Run in different environment

Breaking Changes

No breaking changes

Checklist:

  • I have performed a self-review of my own code
  • I have assigned this pull request to a milestone

Builds are different, because git command output are different:

$ git rev-parse --short HEAD
b3f242d - on my localhost Kubuntu 22.10
b3f242d - inside pastapastapasta's docker

This fix forces to git print always 12 character
@knst knst added this to the 19 milestone Feb 24, 2023
@knst
Copy link
Collaborator Author

knst commented Feb 24, 2023

$ git log --oneline | head -n 1
4c57f4dc72 fix: making builds of guix to produce same output whatever git config
$ sha1sum distsrc-x86_64-linux-gnu/src/dashd
401be366c0fbde3f4b054280558f48d74bfa56d6  distsrc-x86_64-linux-gnu/src/dashd

Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

401be366c0fbde3f4b054280558f48d74bfa56d6  distsrc-x86_64-linux-gnu/src/dashd

ACK

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK for squash merge

@UdjinM6 UdjinM6 merged commit 16d1f64 into dashpay:develop Feb 27, 2023
ogabrielides pushed a commit to ogabrielides/dash that referenced this pull request Feb 28, 2023
…dashpay#5222)

Builds are different, because git command output are different:




## Issue being fixed or feature implemented
in pr dashpay#5194 different OS produced different hashes of binary.
That's due to different behaviour of this command:
```sh
$ git rev-parse --short HEAD
b3f242d - on my localhost Kubuntu 22.10
b3f242d - inside pastapastapasta's docker
```

## What was done?
This fix forces to git print always 12 character


## How Has This Been Tested?
Run in different environment

## Breaking Changes
No breaking changes


## Checklist:
- [x] I have performed a self-review of my own code
- [x] I have assigned this pull request to a milestone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants