Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
b1c2fe66
Commit
b1c2fe66
authored
Sep 08, 2022
by
Matthew Slipper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ops: Add script to automatically upgrade op-* dependencies
parent
ec6b05d0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
84 additions
and
28 deletions
+84
-28
Makefile
Makefile
+2
-26
go.mod
op-node/go.mod
+0
-2
tag-bedrock-go-modules.sh
ops/scripts/tag-bedrock-go-modules.sh
+82
-0
No files found.
Makefile
View file @
b1c2fe66
...
@@ -109,29 +109,5 @@ clean-node-modules:
...
@@ -109,29 +109,5 @@ clean-node-modules:
tag-bedrock-go-modules
:
tag-bedrock-go-modules
:
@
if
[
-z
"
$(VERSION)
"
]
;
then
\
./ops/scripts/tag-bedrock-go-modules.sh
$(BEDROCK_TAGS_REMOTE)
$(VERSION)
echo
"You must specify a version."
;
\
.PHONY
:
tag-bedrock-go-modules
exit
0
;
\
\ No newline at end of file
fi
@
FIRST_CHAR
=
$(
shell
printf
'%s'
"
$(VERSION)
"
|
cut
-c1
)
;
\
if
[
"
$$
FIRST_CHAR"
!=
"v"
]
;
then
\
echo
"Tag must start with v."
;
\
exit
0
;
\
fi
git
tag
"op-proposer/$(VERSION)"
git
tag
"op-node/$(VERSION)"
git
tag
"op-e2e/$(VERSION)"
git
tag
"op-bindings/$(VERSION)"
git
tag
"op-batcher/$(VERSION)"
git
tag
"op-service/$(VERSION)"
git
tag
"op-chain-ops/$(VERSION)"
git
push
$(BEDROCK_TAGS_REMOTE)
"op-proposer/$(VERSION)"
git
push
$(BEDROCK_TAGS_REMOTE)
"op-node/$(VERSION)"
git
push
$(BEDROCK_TAGS_REMOTE)
"op-e2e/$(VERSION)"
git
push
$(BEDROCK_TAGS_REMOTE)
"op-bindings/$(VERSION)"
git
push
$(BEDROCK_TAGS_REMOTE)
"op-batcher/$(VERSION)"
git
push
$(BEDROCK_TAGS_REMOTE)
"op-service/$(VERSION)"
git
push
$(BEDROCK_TAGS_REMOTE)
"op-chain-ops/$(VERSION)"
op-node/go.mod
View file @
b1c2fe66
...
@@ -161,5 +161,3 @@ require (
...
@@ -161,5 +161,3 @@ require (
)
)
replace github.com/ethereum/go-ethereum v1.10.23 => github.com/ethereum-optimism/op-geth v0.0.0-20220907143004-2aacc679d638
replace github.com/ethereum/go-ethereum v1.10.23 => github.com/ethereum-optimism/op-geth v0.0.0-20220907143004-2aacc679d638
replace github.com/ethereum-optimism/optimism/op-bindings v0.5.0 => ../op-bindings
ops/scripts/tag-bedrock-go-modules.sh
0 → 100755
View file @
b1c2fe66
#!/usr/bin/env bash
BEDROCK_TAGS_REMOTE
=
"
$1
"
VERSION
=
"
$2
"
if
[
-z
"
$VERSION
"
]
;
then
echo
"You must specify a version."
exit
0
fi
FIRST_CHAR
=
$(
printf
'%s'
"
$VERSION
"
|
cut
-c1
)
if
[
"
$FIRST_CHAR
"
!=
"v"
]
;
then
echo
"Tag must start with v."
exit
0
fi
git tag
"op-bindings/
$VERSION
"
git tag
"op-service/
$VERSION
"
git push
$BEDROCK_TAGS_REMOTE
"op-bindings/
$VERSION
"
git push
$BEDROCK_TAGS_REMOTE
"op-service/
$VERSION
"
cd
op-chain-ops
go get github.com/ethereum-optimism/optimism/op-bindings@
$VERSION
go get github.com/ethereum-optimism/optimism/op-service@
$VERSION
go mod tidy
git add
.
git commit
-am
'chore: Upgrade op-chain-ops dependencies'
git tag
"op-chain-ops/
$VERSION
"
git push
$BEDROCK_TAGS_REMOTE
"op-chain-ops/
$VERSION
"
cd
../op-node
go get github.com/ethereum-optimism/optimism/op-bindings@
$VERSION
go get github.com/ethereum-optimism/optimism/op-service@
$VERSION
go get github.com/ethereum-optimism/optimism/op-chain-ops@
$VERSION
go mod tidy
git add
.
git commit
-am
'chore: Upgrade op-node dependencies'
git push
$BEDROCK_TAGS_REMOTE
git tag
"op-node/
$VERSION
"
git push
$BEDROCK_TAGS_REMOTE
"op-node/
$VERSION
"
cd
../op-proposer
go get github.com/ethereum-optimism/optimism/op-bindings@
$VERSION
go get github.com/ethereum-optimism/optimism/op-service@
$VERSION
go get github.com/ethereum-optimism/optimism/op-node@
$VERSION
go mod tidy
git add
.
git commit
-am
'chore: Upgrade op-proposer dependencies'
git push
$BEDROCK_TAGS_REMOTE
git tag
"op-proposer/
$VERSION
"
git push
$BEDROCK_TAGS_REMOTE
"op-proposer/
$VERSION
"
cd
../op-batcher
go get github.com/ethereum-optimism/optimism/op-bindings@
$VERSION
go get github.com/ethereum-optimism/optimism/op-service@
$VERSION
go get github.com/ethereum-optimism/optimism/op-node@
$VERSION
go get github.com/ethereum-optimism/optimism/op-proposer@
$VERSION
go mod tidy
git add
.
git commit
-am
'chore: Upgrade op-batcher dependencies'
git push
$BEDROCK_TAGS_REMOTE
git tag
"op-batcher/
$VERSION
"
git push
$BEDROCK_TAGS_REMOTE
"op-batcher/
$VERSION
"
cd
../op-e2e
go get github.com/ethereum-optimism/optimism/op-bindings@
$VERSION
go get github.com/ethereum-optimism/optimism/op-service@
$VERSION
go get github.com/ethereum-optimism/optimism/op-node@
$VERSION
go get github.com/ethereum-optimism/optimism/op-proposer@
$VERSION
go get github.com/ethereum-optimism/optimism/op-batcher@
$VERSION
go mod tidy
git add
.
git commit
-am
'chore: Upgrade op-e2e dependencies'
git push
$BEDROCK_TAGS_REMOTE
git tag
"op-e2e/
$VERSION
"
git push
$BEDROCK_TAGS_REMOTE
"op-e2e/
$VERSION
"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment