Skip to content

Conversation

@piersy
Copy link

@piersy piersy commented Feb 5, 2025

The substitution was failing in the docker file since, the substitution
notation \1 and the beginning of the image hash together created \150 which
perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups. We also use ${x} for bash expansions to reduce the chance of
something similar happening in future updates.

The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.
@piersy piersy requested a review from palango February 5, 2025 10:28
@palango palango requested a review from karlb February 5, 2025 14:16
Copy link

@karlb karlb left a comment

Choose a reason for hiding this comment

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

I'm not convinced that bash expansion change prevents any problems, but it is ok and the perl ${1} change is exactly the right fix for this problem.

@piersy piersy merged commit 0df9d40 into celo10 Feb 5, 2025
56 of 57 checks passed
@piersy piersy deleted the piersy/fix-update-geth-again branch February 5, 2025 15:27
palango added a commit that referenced this pull request Feb 6, 2025
* Fix missing import in celo-migrate/main.go (#305)

* Fix update-geth.sh (#304)

The script was not substituting the go.mod file and the Dockerfile since the
regexes were not matching.

The regex for the Dockerfile contained '@sha256:' which perl was
interpreting as a global symbol, in order to interpret it literally we
needed to escape the '@'.

The regex for the go.mod file contained an extra space before the arrow
'go-ethereum .* => ', in a tidied go.mod file there is one space between
the package name and the arrow '=>'.

Also adds failure output so that it's easier to debug where this is
going wrong.

---------

Co-authored-by: Karl Bartel <[email protected]>
Co-authored-by: Paul Lange <[email protected]>

* The substitution was failing in the docker file since (#309)

The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.

* Revert "Update op-geth for `celo10` branch (#292)"

This reverts commit 16f5156.

* Update op-geth to celo-v2.0.0-rc3

* Reinstate requirements

---------

Co-authored-by: Karl Bartel <[email protected]>
Co-authored-by: Paul Lange <[email protected]>
karlb pushed a commit that referenced this pull request Feb 12, 2025
The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.
piersy pushed a commit that referenced this pull request Apr 8, 2025
* feat: AnchorStateRegistry as source of truth

Updates the OptimismPortal to use the AnchorStateRegistry as the
source of truth for the validity of Dispute Game contracts.

* feat: new eth lockbox (#285)

* feat: create new eth lockbox contract with interface

* chore: add it on the deployment scripts (wip)

* feat: create the test base to check if the setup for it is working

* feat: add all eth lockbox tests

* fix: opcm deployment script issue

* fix: lockbox tests

* feat: add no withdrawal tx unlock eth check

* chore: check proper initialization on test

* fix: pre-pr fixes

* chore: run pre-pr

* fix: opcm tests related to eth lockbox

* feat: add admin owner check on authorize portal and lockbox as well

* refactor: add prefix to errors and declare them on contract

* chore add no withdrawal tx comment

* feat: authorize portal in lockbox on the opcm

* chore: add one more check for eth lockbox

* fix: intializable and specs tests

* fix: pre-pr

* feat: integrate portal with lockbox (#291)

* feat: integrate portal with lockbox

* fix: migrate natspec

Co-authored-by: Disco <[email protected]>

* fix: delete natspec

Co-authored-by: Disco <[email protected]>

* fix: natspec nits

* chore: natspec wording

* chore: function order

* chore: remove internals

* feat: add eth lockbox as portal arg on opcm

* feat: add checks on scripts and unit tests

* feat: lock and unlock tests

* feat: add migrate liquidity tests

* fix: other failing portal tests

* chore: run pre-pr

* chore: improve lock and unlock checks on tests

* chore: undo portal version change and run pre-pr

* refactor: enhance expect call checks

* fix: fork test string error

* fix: just test failing tests

* refactor: pao base

* refactor: setup portal and lockbox integration on initialization

* feat: update lockbox setter

* chore: update pao naming on tests

* chore: portal comment

* chore: update version and run pre-pr

* fix: spec

* fix: lockbox storage layout

* fix: pr comments and failing test

* feat: portal upgrade test

* chore: remove portal balance check on chain assertions

* fix: error string on chain assertions

* feat: add test for portal unsafe target

* fix: approval

---------

Co-authored-by: Disco <[email protected]>

* fix: semver lock

* fix: failing tests after merge

* fix: interface import

* chore: add lockbox pao matches final system owner check

* fix: pr comments (#293)

* chore: remove unused function

* chore: add pao validation checks over portal and lockbox

* refactor: use interface as arg type instead of address on functions

* fix: comment max length

* refactor: update lockbox param type as interface

* refactor: use interface as type on migrate liquidity and authorize lockbox functions

* chore: run pre pr

* fix: high fuzz runs failing test using mostly assume not forge address

* refactor: use ioptimis portal instead of ioptimism portal2 everywhere

* chore: undo changes on unrelated files to the pr

* feat: add Super Root specific method to OptimismPortal

Updates the OptimismPortal to include a method that allows users
to prove against Super Roots for interop.

* fix: pr second comments (#295)

* chore: undo initializable v5 test changes

* chore: remove portal already authorized check

* chore: remove portal already authorized check

* refactor: rename pao to proxy admin owner

* fix: pre pr

* fix: test upgrade fails (#296)

* fix: test upgrade fails

* feat: handle fork state on eth lockbox tests

* chore: enhance comments

* chore: run pre-pr

* fix: semgrep

* fix: comments

* chore: address path where is not a fork to get the lockbox

* chore: run pre pr

* fix: pr fixes (#298)

* chore: enhance opcm comment

* fix: same proxy admin owner typo

* feat: add insufficient balance check

* chore: add natspec comments on lockbox migration process

* chore: pre pr

* fix: add lockbox on implementations struct to fix go test (#300)

* feat: AnchorStateRegistry as source of truth

Updates the OptimismPortal to use the AnchorStateRegistry as the
source of truth for the validity of Dispute Game contracts.

* feat: add Super Root specific method to OptimismPortal

Updates the OptimismPortal to include a method that allows users
to prove against Super Roots for interop.

* feat: interop portal OPCM updates

* fix: remove old respectedGameType check from portal test

* fix: deploy new dispute games in OPCM

* feat: add upgrade 15 test path

* feat: integrate into opcm fork tests

* fix: corrected checks for ASR

* fix: rebase tweaks

* fix: OPCM integration

* fix: OPCM stack too deep

* fix: pre pr

* fix: update portal implementation on opcm upgrade

* fix: call upgrade on portal without upgrading any impl

* fix: iopcm interface for older versions already deployed

* refactor: use minimal interface for opcm without lockbox

* fix: import

* chore: undo changes on opcm carried when resolving conflicts (#302)

* fix: include lockbox on reinitialization test and add todos with issue number (#303)

* fix: include lockbox on reinitialization test

* fix: polish nits

* refactor: get eth lockbox on test condition

* chore: add todos pointing to the issue

* fix: add ETHLockbox to op-deployer

* fix: add evm tags to ETHLockboxImpl

* fix: evm tags for ethLockboxProxy too

* fix: remove certain ETHLockbox checks

* fix: properly add ETHLockbox to state

* fix: handle deposit tests and kill L2oo tests

* fix: undo change in user test

* fix: kill more L2OO tests

* fix: bug in withdrawal validity test

* fix: pr review (#309)

* chore: remove unnecessary cast

* refactor: add lockbox on eth migrated event

* chore: rename pa owner to pa owned base

* refactor: add amount on liquidity received and migrated events

* fix: format

* refactor: add amount on liquidity migrated event

* chore: pre-pr

---------

Co-authored-by: agusduha <[email protected]>

* fix: some remaining merge issues

* fix: go linting error

* fix: remove old test skips

* fix: unskip v2 upgrade tests

* fix: skip v2 upgrade tests again

---------

Co-authored-by: Disco <[email protected]>
Co-authored-by: AgusDuha <[email protected]>
Co-authored-by: agusduha <[email protected]>
piersy added a commit that referenced this pull request May 7, 2025
The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.
piersy added a commit that referenced this pull request May 8, 2025
The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.
piersy added a commit that referenced this pull request May 8, 2025
The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.
piersy added a commit that referenced this pull request May 8, 2025
The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.
piersy added a commit that referenced this pull request May 20, 2025
The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.
piersy added a commit that referenced this pull request May 22, 2025
The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.
Kourin1996 pushed a commit that referenced this pull request Jul 23, 2025
The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.
Kourin1996 pushed a commit that referenced this pull request Jul 25, 2025
The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.
Kourin1996 pushed a commit that referenced this pull request Jul 26, 2025
The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.
Kourin1996 pushed a commit that referenced this pull request Jul 26, 2025
The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.
Kourin1996 pushed a commit that referenced this pull request Jul 27, 2025
The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.
Kourin1996 pushed a commit that referenced this pull request Jul 27, 2025
The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.
Kourin1996 pushed a commit that referenced this pull request Jul 28, 2025
The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.
Kourin1996 pushed a commit that referenced this pull request Jul 28, 2025
The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.
Kourin1996 pushed a commit that referenced this pull request Jul 28, 2025
The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.
Kourin1996 pushed a commit that referenced this pull request Aug 4, 2025
The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.
Kourin1996 pushed a commit that referenced this pull request Aug 4, 2025
The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.
Kourin1996 pushed a commit that referenced this pull request Aug 6, 2025
The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.
Kourin1996 pushed a commit that referenced this pull request Aug 7, 2025
* Add script to update `celo-org/op-geth` dependencies

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Add github action for update-geth script

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use inline geth base-ref

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Discard automatic fields

Signed-off-by: Maximilian Langenfeld <[email protected]>

* token perms

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use read-only GCP SA

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Better parameter  handling in update-geth action

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Remove `update-celo-geth` cmd from justfile

---------

Signed-off-by: Maximilian Langenfeld <[email protected]>
Co-authored-by: alvarof2 <[email protected]>

github: improve update-geth.sh

* mark it as executable
* allow running on both MacOS and linux (GNU vs BSD tool differences)
* terminate on errors
* less strict go.mod matching to allow applying it directly to upstream

github: Fix update-geth.sh (#304)

The script was not substituting the go.mod file and the Dockerfile since the
regexes were not matching.

The regex for the Dockerfile contained '@sha256:' which perl was
interpreting as a global symbol, in order to interpret it literally we
needed to escape the '@'.

The regex for the go.mod file contained an extra space before the arrow
'go-ethereum .* => ', in a tidied go.mod file there is one space between
the package name and the arrow '=>'.

Also adds failure output so that it's easier to debug where this is
going wrong.

---------

Co-authored-by: Karl Bartel <[email protected]>
Co-authored-by: Paul Lange <[email protected]>

github: The substitution was failing in the docker file since (#309)

The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.

github: Change base-branch for update-geth workflow

github: Add `celo-org/op-geth` dependencies update script and gh-action (#263)

* Add script to update `celo-org/op-geth` dependencies

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Add github action for update-geth script

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use inline geth base-ref

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Discard automatic fields

Signed-off-by: Maximilian Langenfeld <[email protected]>

* token perms

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use read-only GCP SA

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Better parameter  handling in update-geth action

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Remove `update-celo-geth` cmd from justfile

---------

Signed-off-by: Maximilian Langenfeld <[email protected]>
Co-authored-by: alvarof2 <[email protected]>

github: Update update geth approach (#319)

Removed the old script because it referenced ops-bedrock which has been
removed.

Added a copy of the op-geth provided update script, decided on a copy to
avoid conflicts.

Updated the update-geth workflow to reference the new script

github: Change update-geth base-branch to 'celo-rebase-13' (#382)

github: Change update-geth base-branch to 'celo-rebase-14'
Kourin1996 pushed a commit that referenced this pull request Aug 11, 2025
* Add script to update `celo-org/op-geth` dependencies

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Add github action for update-geth script

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use inline geth base-ref

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Discard automatic fields

Signed-off-by: Maximilian Langenfeld <[email protected]>

* token perms

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use read-only GCP SA

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Better parameter  handling in update-geth action

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Remove `update-celo-geth` cmd from justfile

---------

Signed-off-by: Maximilian Langenfeld <[email protected]>
Co-authored-by: alvarof2 <[email protected]>

github: improve update-geth.sh

* mark it as executable
* allow running on both MacOS and linux (GNU vs BSD tool differences)
* terminate on errors
* less strict go.mod matching to allow applying it directly to upstream

github: Fix update-geth.sh (#304)

The script was not substituting the go.mod file and the Dockerfile since the
regexes were not matching.

The regex for the Dockerfile contained '@sha256:' which perl was
interpreting as a global symbol, in order to interpret it literally we
needed to escape the '@'.

The regex for the go.mod file contained an extra space before the arrow
'go-ethereum .* => ', in a tidied go.mod file there is one space between
the package name and the arrow '=>'.

Also adds failure output so that it's easier to debug where this is
going wrong.

---------

Co-authored-by: Karl Bartel <[email protected]>
Co-authored-by: Paul Lange <[email protected]>

github: The substitution was failing in the docker file since (#309)

The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.

github: Change base-branch for update-geth workflow

github: Add `celo-org/op-geth` dependencies update script and gh-action (#263)

* Add script to update `celo-org/op-geth` dependencies

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Add github action for update-geth script

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use inline geth base-ref

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Discard automatic fields

Signed-off-by: Maximilian Langenfeld <[email protected]>

* token perms

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use read-only GCP SA

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Better parameter  handling in update-geth action

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Remove `update-celo-geth` cmd from justfile

---------

Signed-off-by: Maximilian Langenfeld <[email protected]>
Co-authored-by: alvarof2 <[email protected]>

github: Update update geth approach (#319)

Removed the old script because it referenced ops-bedrock which has been
removed.

Added a copy of the op-geth provided update script, decided on a copy to
avoid conflicts.

Updated the update-geth workflow to reference the new script

github: Change update-geth base-branch to 'celo-rebase-13' (#382)

github: Change update-geth base-branch to 'celo-rebase-14'
gastonponti pushed a commit that referenced this pull request Sep 22, 2025
* Add script to update `celo-org/op-geth` dependencies

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Add github action for update-geth script

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use inline geth base-ref

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Discard automatic fields

Signed-off-by: Maximilian Langenfeld <[email protected]>

* token perms

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use read-only GCP SA

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Better parameter  handling in update-geth action

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Remove `update-celo-geth` cmd from justfile

---------

Signed-off-by: Maximilian Langenfeld <[email protected]>
Co-authored-by: alvarof2 <[email protected]>

github: improve update-geth.sh

* mark it as executable
* allow running on both MacOS and linux (GNU vs BSD tool differences)
* terminate on errors
* less strict go.mod matching to allow applying it directly to upstream

github: Fix update-geth.sh (#304)

The script was not substituting the go.mod file and the Dockerfile since the
regexes were not matching.

The regex for the Dockerfile contained '@sha256:' which perl was
interpreting as a global symbol, in order to interpret it literally we
needed to escape the '@'.

The regex for the go.mod file contained an extra space before the arrow
'go-ethereum .* => ', in a tidied go.mod file there is one space between
the package name and the arrow '=>'.

Also adds failure output so that it's easier to debug where this is
going wrong.

---------

Co-authored-by: Karl Bartel <[email protected]>
Co-authored-by: Paul Lange <[email protected]>

github: The substitution was failing in the docker file since (#309)

The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.

github: Change base-branch for update-geth workflow

github: Add `celo-org/op-geth` dependencies update script and gh-action (#263)

* Add script to update `celo-org/op-geth` dependencies

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Add github action for update-geth script

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use inline geth base-ref

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Discard automatic fields

Signed-off-by: Maximilian Langenfeld <[email protected]>

* token perms

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use read-only GCP SA

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Better parameter  handling in update-geth action

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Remove `update-celo-geth` cmd from justfile

---------

Signed-off-by: Maximilian Langenfeld <[email protected]>
Co-authored-by: alvarof2 <[email protected]>

github: Update update geth approach (#319)

Removed the old script because it referenced ops-bedrock which has been
removed.

Added a copy of the op-geth provided update script, decided on a copy to
avoid conflicts.

Updated the update-geth workflow to reference the new script

github: Change update-geth base-branch to 'celo-rebase-13' (#382)

github: Change update-geth base-branch to 'celo-rebase-14'
gastonponti pushed a commit that referenced this pull request Sep 22, 2025
* Add script to update `celo-org/op-geth` dependencies

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Add github action for update-geth script

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use inline geth base-ref

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Discard automatic fields

Signed-off-by: Maximilian Langenfeld <[email protected]>

* token perms

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use read-only GCP SA

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Better parameter  handling in update-geth action

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Remove `update-celo-geth` cmd from justfile

---------

Signed-off-by: Maximilian Langenfeld <[email protected]>
Co-authored-by: alvarof2 <[email protected]>

github: improve update-geth.sh

* mark it as executable
* allow running on both MacOS and linux (GNU vs BSD tool differences)
* terminate on errors
* less strict go.mod matching to allow applying it directly to upstream

github: Fix update-geth.sh (#304)

The script was not substituting the go.mod file and the Dockerfile since the
regexes were not matching.

The regex for the Dockerfile contained '@sha256:' which perl was
interpreting as a global symbol, in order to interpret it literally we
needed to escape the '@'.

The regex for the go.mod file contained an extra space before the arrow
'go-ethereum .* => ', in a tidied go.mod file there is one space between
the package name and the arrow '=>'.

Also adds failure output so that it's easier to debug where this is
going wrong.

---------

Co-authored-by: Karl Bartel <[email protected]>
Co-authored-by: Paul Lange <[email protected]>

github: The substitution was failing in the docker file since (#309)

The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.

github: Change base-branch for update-geth workflow

github: Add `celo-org/op-geth` dependencies update script and gh-action (#263)

* Add script to update `celo-org/op-geth` dependencies

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Add github action for update-geth script

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use inline geth base-ref

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Discard automatic fields

Signed-off-by: Maximilian Langenfeld <[email protected]>

* token perms

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use read-only GCP SA

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Better parameter  handling in update-geth action

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Remove `update-celo-geth` cmd from justfile

---------

Signed-off-by: Maximilian Langenfeld <[email protected]>
Co-authored-by: alvarof2 <[email protected]>

github: Update update geth approach (#319)

Removed the old script because it referenced ops-bedrock which has been
removed.

Added a copy of the op-geth provided update script, decided on a copy to
avoid conflicts.

Updated the update-geth workflow to reference the new script

github: Change update-geth base-branch to 'celo-rebase-13' (#382)

github: Change update-geth base-branch to 'celo-rebase-14'
gastonponti pushed a commit that referenced this pull request Sep 23, 2025
* Add script to update `celo-org/op-geth` dependencies

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Add github action for update-geth script

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use inline geth base-ref

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Discard automatic fields

Signed-off-by: Maximilian Langenfeld <[email protected]>

* token perms

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use read-only GCP SA

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Better parameter  handling in update-geth action

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Remove `update-celo-geth` cmd from justfile

---------

Signed-off-by: Maximilian Langenfeld <[email protected]>
Co-authored-by: alvarof2 <[email protected]>

github: improve update-geth.sh

* mark it as executable
* allow running on both MacOS and linux (GNU vs BSD tool differences)
* terminate on errors
* less strict go.mod matching to allow applying it directly to upstream

github: Fix update-geth.sh (#304)

The script was not substituting the go.mod file and the Dockerfile since the
regexes were not matching.

The regex for the Dockerfile contained '@sha256:' which perl was
interpreting as a global symbol, in order to interpret it literally we
needed to escape the '@'.

The regex for the go.mod file contained an extra space before the arrow
'go-ethereum .* => ', in a tidied go.mod file there is one space between
the package name and the arrow '=>'.

Also adds failure output so that it's easier to debug where this is
going wrong.

---------

Co-authored-by: Karl Bartel <[email protected]>
Co-authored-by: Paul Lange <[email protected]>

github: The substitution was failing in the docker file since (#309)

The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.

github: Change base-branch for update-geth workflow

github: Add `celo-org/op-geth` dependencies update script and gh-action (#263)

* Add script to update `celo-org/op-geth` dependencies

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Add github action for update-geth script

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use inline geth base-ref

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Discard automatic fields

Signed-off-by: Maximilian Langenfeld <[email protected]>

* token perms

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use read-only GCP SA

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Better parameter  handling in update-geth action

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Remove `update-celo-geth` cmd from justfile

---------

Signed-off-by: Maximilian Langenfeld <[email protected]>
Co-authored-by: alvarof2 <[email protected]>

github: Update update geth approach (#319)

Removed the old script because it referenced ops-bedrock which has been
removed.

Added a copy of the op-geth provided update script, decided on a copy to
avoid conflicts.

Updated the update-geth workflow to reference the new script

github: Change update-geth base-branch to 'celo-rebase-13' (#382)

github: Change update-geth base-branch to 'celo-rebase-14'
gastonponti pushed a commit that referenced this pull request Jan 8, 2026
* Add script to update `celo-org/op-geth` dependencies

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Add github action for update-geth script

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use inline geth base-ref

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Discard automatic fields

Signed-off-by: Maximilian Langenfeld <[email protected]>

* token perms

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use read-only GCP SA

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Better parameter  handling in update-geth action

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Remove `update-celo-geth` cmd from justfile

---------

Signed-off-by: Maximilian Langenfeld <[email protected]>
Co-authored-by: alvarof2 <[email protected]>

github: improve update-geth.sh

* mark it as executable
* allow running on both MacOS and linux (GNU vs BSD tool differences)
* terminate on errors
* less strict go.mod matching to allow applying it directly to upstream

github: Fix update-geth.sh (#304)

The script was not substituting the go.mod file and the Dockerfile since the
regexes were not matching.

The regex for the Dockerfile contained '@sha256:' which perl was
interpreting as a global symbol, in order to interpret it literally we
needed to escape the '@'.

The regex for the go.mod file contained an extra space before the arrow
'go-ethereum .* => ', in a tidied go.mod file there is one space between
the package name and the arrow '=>'.

Also adds failure output so that it's easier to debug where this is
going wrong.

---------

Co-authored-by: Karl Bartel <[email protected]>
Co-authored-by: Paul Lange <[email protected]>

github: The substitution was failing in the docker file since (#309)

The substitution \1 and the beginning of the image hash together created
\150 which perl interprets as the octal character code for h.

To prevent this we need to use the \${1} notation to reference captured
groups.

github: Change base-branch for update-geth workflow

github: Add `celo-org/op-geth` dependencies update script and gh-action (#263)

* Add script to update `celo-org/op-geth` dependencies

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Add github action for update-geth script

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use inline geth base-ref

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Discard automatic fields

Signed-off-by: Maximilian Langenfeld <[email protected]>

* token perms

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Use read-only GCP SA

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Better parameter  handling in update-geth action

Signed-off-by: Maximilian Langenfeld <[email protected]>

* Remove `update-celo-geth` cmd from justfile

---------

Signed-off-by: Maximilian Langenfeld <[email protected]>
Co-authored-by: alvarof2 <[email protected]>

github: Update update geth approach (#319)

Removed the old script because it referenced ops-bedrock which has been
removed.

Added a copy of the op-geth provided update script, decided on a copy to
avoid conflicts.

Updated the update-geth workflow to reference the new script

github: Change update-geth base-branch to 'celo-rebase-13' (#382)

github: Change update-geth base-branch to 'celo-rebase-14'
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.

3 participants