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: 🐛 create default version value for forked repos #2303

Merged
merged 10 commits into from
Sep 9, 2023
Merged

fix: 🐛 create default version value for forked repos #2303

merged 10 commits into from
Sep 9, 2023

Conversation

OmarMesqq
Copy link
Contributor

@OmarMesqq OmarMesqq commented Aug 27, 2023

Related issue

This change allows people who are trying to contribute to LPython to build the project locally without having to manually create a tag or fetch from origin.

The local build will default to 0.0.0-0

this change allows people who are trying to contribute to LPython to build the project locally without having to manually create a tag or fetch from origin
@OmarMesqq OmarMesqq marked this pull request as ready for review August 27, 2023 01:37
@certik
Copy link
Contributor

certik commented Aug 28, 2023

I would not do it by default like this, as I think we want to see the error message if something goes wrong with the tags.

Rather, why not creating a separate script for this?

@OmarMesqq
Copy link
Contributor Author

@certik good point. I assumed that, unlike the forked ones, the upstream repo will always have the configured tags but an error might indeed occur.

I will undo changes in version.sh and propose a new shell script that handles the case for forked repos.

@certik
Copy link
Contributor

certik commented Aug 28, 2023

(Usually that is the case. But I've seen sometimes if the tags don't download for some reason, such as in your fork, then we want to see it break.)

ci/version.sh Outdated Show resolved Hide resolved
@certik certik marked this pull request as draft September 5, 2023 22:41
@OmarMesqq OmarMesqq marked this pull request as ready for review September 8, 2023 23:38
Copy link
Contributor

@certik certik left a comment

Choose a reason for hiding this comment

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

I think that works!

@certik certik merged commit 0f25e82 into lcompilers:main Sep 9, 2023
12 checks passed
@certik
Copy link
Contributor

certik commented Sep 9, 2023

Thanks!

@OmarMesqq OmarMesqq deleted the fix/build-script-from-forked-repo branch September 9, 2023 17:18
@abhi-glitchhg
Copy link

It would be helpful to mention this in the readme: https://github.com/lcompilers/lpython#linux-and-macos

@certik
Copy link
Contributor

certik commented Oct 2, 2023

@abhi-glitchhg go ahead and submit a PR to the README. Thanks!

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.

None yet

3 participants