#!/usr/bin/env python3
import json
import subprocess
import os
GETH_VERSION='v1.11.2'
def main():
for project in ('.', 'indexer'):
print(f'Updating {project}...')
update_mod(project)
def update_mod(project):
print('Replacing...')
subprocess.run([
'go',
'mod',
'edit',
'-replace',
f'github.com/ethereum/go-ethereum@{GETH_VERSION}=github.com/ethereum-optimism/op-geth@optimism'
], cwd=os.path.join(project), check=True)
print('Tidying...')
subprocess.run([
'go',
'mod',
'tidy'
], cwd=os.path.join(project), check=True)
if __name__ == '__main__':
main()
-
Mark Tyneway authored
Bring back `ci-builder` to the monorepo as it should have never been deleted. Also bring back various tagging scripts. It is not clear which tagging script is used at the moment, need clarity on which should be actually brought back before merging this. `ci-versions.js` is required for changesets, so bring that back for sure. `update-op-geth.py` is used but unclear about the 2 other shell scripts.
03f5b550