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 bugs intruduced by my previous PR #50

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

gutjuri
Copy link
Contributor

@gutjuri gutjuri commented Jan 26, 2024

I noticed that my PR broke your pipeline, so I investigated what the problem is.
Turns out that this command

subprocess.run("git checkout 3a0746bf5f601dfed05330aefcb6854354fce07d".split(), check=True)
fails, which I previously didn't notice.
The reason for the failure is that cloning with --depth 1 means that the git history isn't downloaded. Only the current state of the master branch is. I fixed this by specifying the desired version of the library in the clone command itself (tag 4.1.0 is the same commit that was previously specified with the hash 3a0746... I wrote 4.1.0 because I think this is more readable).

Hope the pipeline now runs through and sorry for wasting your time this way... Nevertheless i hope this my PRs save you and other contributors time in the future.

I have now tested my change locally by building the project, so I am confident that it works now :D Also, the CI pipeline is green again.

@@ -16,12 +16,12 @@ def getJson(install, prefix, par):
osStr = (platform.system())
cwd = os.getcwd()
folder = cwd + "/json"
url = "https://github.com/nlohmann/json.git "
url = "https://github.com/nlohmann/json.git"
json_branch_or_tag = "develop"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also, the previous version of the script to install nlohmann/json didn't explicitly specify a branch or tag or commit-id to pull, so it just pulled the default branch (develop). i have made this explicit in this PR. However, I don't know whether or not develop is stable, so if you think that it is appropriate you can change this to some release tag (e.g. v3.11.3)

Suggested change
json_branch_or_tag = "develop"
json_branch_or_tag = "v3.11.3"

@ladnir ladnir merged commit 0849df6 into ladnir:master Jan 26, 2024
1 check passed
@gutjuri gutjuri deleted the fix-buildscript-fix branch January 26, 2024 16:06
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.

2 participants