-
Notifications
You must be signed in to change notification settings - Fork 1
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
add python script to update go.mod with a specific hash in pipeline #68
Conversation
@@ -0,0 +1 @@ | |||
requests==2.32.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where do we need this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this are python packages related to the script
print(f"Latest commit hash received: {latest_commit_hash}") | ||
|
||
update_go_mod_file(go_mod_path, latest_commit_hash) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trigger a run for the go mod tidy
command here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, you have unverified Github commits. Strongly suggest to redo this PR enabling the signature verification first.
2f4a105
to
93b1dd1
Compare
…nch from mx-chain-go and substitute it in go.mod file add python script that parse latest commit from a specific target branch from mx-chain-go and substitute it in go.mod file update structure in order to pass the hash to a python script fix the regex fix go.mod path fix regex fix regex fix regex fix regex revert regex revert regex use old regex use old regex fix PR comments fix PR comments
93b1dd1
to
03d7bbf
Compare
Done. Now I have just 1 signed commit |
@@ -0,0 +1 @@ | |||
requests==2.32.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add empty line at the end of the file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
print(f"Failed to run go mod tidy: {e.stderr}") | ||
sys.exit(1) | ||
|
||
if __name__ == "__main__": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
define a 'main' function and call this function in this section
if name == "main":
main()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
7a41cde
to
07a714d
Compare
No description provided.