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 getVersion to handle tag properly #158

Merged
merged 1 commit into from
Jul 20, 2023
Merged

Fix getVersion to handle tag properly #158

merged 1 commit into from
Jul 20, 2023

Conversation

hyp3rflow
Copy link
Member

Git tags are unique Git objects and thus have their own SHA1 hash. So the current implementation differentiates between a tag and the commit it points to. As a result, when tycheck using the -extract:target=es2022 option, it's unable to correctly apply manual patches.

This PR changes git command for getting correct commit hash from the given target.
If this is intended, please feel free to close the pull request.

@hyp3rflow hyp3rflow requested a review from jhnaldo July 18, 2023 07:45
@hyp3rflow hyp3rflow self-assigned this Jul 18, 2023
Copy link
Contributor

@jhnaldo jhnaldo left a comment

Choose a reason for hiding this comment

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

LGTM! 👍🏻

@jhnaldo jhnaldo merged commit 212bccd into dev Jul 20, 2023
@jhnaldo jhnaldo deleted the git-revision branch July 20, 2023 10:47
@jhnaldo jhnaldo added bug Something isn't working enhancement Enhance the quality of a feature labels Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement Enhance the quality of a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants