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

remove git-commit-hash file from the source tarballs #125176

Closed

Conversation

onur-ozkan
Copy link
Member

We put 2 files in source tarballs that contains git related informations.

1: git-commit-info:

9b00956e56009bab2aa15d7bff10916599e3d6d6
9b00956e5
2024-04-29

2: git-commit-hash:

9b00956e56009bab2aa15d7bff10916599e3d6d6

As the commit hash already covered in the git-commit-info file, this change removes the use of git-commit-hash and uses git-commit-info file instead.

@rustbot
Copy link
Collaborator

rustbot commented May 16, 2024

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels May 16, 2024
We put 2 files in source tarballs that contains git related informations.

1: git-commit-info:

```txt
9b00956
9b00956
2024-04-29
```

2: git-commit-hash:

```txt
9b00956
```

As the commit hash already covered in the `git-commit-info` file, this change
removes the use of git-commit-hash and uses git-commit-info file instead.

Signed-off-by: onur-ozkan <work@onurozkan.dev>
@Mark-Simulacrum
Copy link
Member

This seems like it complicates downstream consumption (a little) since it needs parsing rather than just passing the file to e.g. git or other tooling. It's simple parsing, but still extra work. It's also at least theoretically a breaking change since tooling could be relying on this file existing.

Is there a motivation for making this change? It doesn't feel like there's much of a problem with a few extra files.

@onur-ozkan
Copy link
Member Author

Is there a motivation for making this change? It doesn't feel like there's much of a problem with a few extra files.

There's no particular reason; I just wanted to consolidate some duplicated stuff in the bootstrap.

@Mark-Simulacrum
Copy link
Member

In that case I'll go ahead and close. I don't think this is worth the potential for breakage without some stronger justification.

@onur-ozkan onur-ozkan deleted the remove-git-commit-hash branch May 28, 2024 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants