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

add python script to update go.mod with a specific hash in pipeline #68

Merged
merged 4 commits into from
Aug 8, 2024

Conversation

btc-fan
Copy link
Contributor

@btc-fan btc-fan commented Aug 6, 2024

No description provided.

@btc-fan btc-fan changed the base branch from rc/v1.7.next11 to rc/v1.7.next1 August 6, 2024 06:59
go.mod Outdated Show resolved Hide resolved
@@ -0,0 +1 @@
requests==2.32.3
Copy link
Contributor

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?

Copy link
Contributor Author

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

scripts/update_go_mod/update_go_mod.py Outdated Show resolved Hide resolved
print(f"Latest commit hash received: {latest_commit_hash}")

update_go_mod_file(go_mod_path, latest_commit_hash)

Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@iulianpascalau iulianpascalau left a 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.

@btc-fan btc-fan force-pushed the integrate-sys-tests-ci branch from 2f4a105 to 93b1dd1 Compare August 6, 2024 14:31
…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
@btc-fan btc-fan force-pushed the integrate-sys-tests-ci branch from 93b1dd1 to 03d7bbf Compare August 6, 2024 14:39
@btc-fan
Copy link
Contributor Author

btc-fan commented Aug 7, 2024

Also, you have unverified Github commits. Strongly suggest to redo this PR enabling the signature verification first.

Done. Now I have just 1 signed commit

iulianpascalau
iulianpascalau previously approved these changes Aug 7, 2024
@@ -0,0 +1 @@
requests==2.32.3
Copy link
Contributor

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

Copy link
Contributor Author

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__":
Copy link
Contributor

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()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

iulianpascalau
iulianpascalau previously approved these changes Aug 7, 2024
AdoAdoAdo
AdoAdoAdo previously approved these changes Aug 8, 2024
@btc-fan btc-fan dismissed stale reviews from AdoAdoAdo and iulianpascalau via 7a41cde August 8, 2024 12:19
@btc-fan btc-fan force-pushed the integrate-sys-tests-ci branch from 7a41cde to 07a714d Compare August 8, 2024 12:45
@btc-fan btc-fan merged commit 49142bd into rc/v1.7.next1 Aug 8, 2024
6 checks passed
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.

4 participants