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

Include git sha in the complied header #635

Open
lens0021 opened this issue Dec 16, 2024 · 1 comment
Open

Include git sha in the complied header #635

lens0021 opened this issue Dec 16, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@lens0021
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Sometime I want to know what exact version is used when reading a sh script compiled using the master branch.

Describe the solution you'd like

#!/usr/bin/env bash
# Written in [Amber](https://amber-lang.com/)
# version: 0.3.5-alpha (19c3e35c6836a75e931761386616557e63e44c30)
# date: 2024-12-12 16:37:29

And shows whether the worktree is dirty.

# version: 0.3.5-alpha (19c3e35c6836a75e931761386616557e63e44c30, dirty worktree)
@lens0021 lens0021 added the enhancement New feature or request label Dec 16, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in Amber Project Dec 16, 2024
@lens0021
Copy link
Contributor Author

What I've found on StackOverflow recommands to executing git command before the building. https://stackoverflow.com/a/44407625/10916512

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant