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
d1cd9482
Unverified
Commit
d1cd9482
authored
Oct 24, 2023
by
Adrian Sutton
Committed by
GitHub
Oct 24, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7783 from shaspitz/shawn/fix-git-commit-print
fix(op-node): git commit print
parents
0315d280
f2725091
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
5 deletions
+22
-5
__init__.py
bedrock-devnet/devnet/__init__.py
+7
-2
main.go
op-challenger/cmd/main.go
+5
-1
main.go
op-node/cmd/main.go
+5
-1
main.go
op-program/host/cmd/main.go
+5
-1
No files found.
bedrock-devnet/devnet/__init__.py
View file @
d1cd9482
...
...
@@ -94,8 +94,13 @@ def main():
devnet_l1_genesis
(
paths
)
return
log
.
info
(
'Building docker images'
)
run_command
([
'docker'
,
'compose'
,
'build'
,
'--progress'
,
'plain'
],
cwd
=
paths
.
ops_bedrock_dir
,
env
=
{
git_commit
=
subprocess
.
run
([
'git'
,
'rev-parse'
,
'HEAD'
],
capture_output
=
True
,
text
=
True
)
.
stdout
.
strip
()
git_date
=
subprocess
.
run
([
'git'
,
'show'
,
'-s'
,
"--format=
%
ct"
],
capture_output
=
True
,
text
=
True
)
.
stdout
.
strip
()
log
.
info
(
f
'Building docker images for git commit {git_commit} ({git_date})'
)
run_command
([
'docker'
,
'compose'
,
'build'
,
'--progress'
,
'plain'
,
'--build-arg'
,
f
'GIT_COMMIT={git_commit}'
,
'--build-arg'
,
f
'GIT_DATE={git_date}'
],
cwd
=
paths
.
ops_bedrock_dir
,
env
=
{
'PWD'
:
paths
.
ops_bedrock_dir
,
'DOCKER_BUILDKIT'
:
'1'
,
# (should be available by default in later versions, but explicitly enable it anyway)
'COMPOSE_DOCKER_CLI_BUILD'
:
'1'
# use the docker cache
...
...
op-challenger/cmd/main.go
View file @
d1cd9482
...
...
@@ -24,7 +24,11 @@ var (
var
VersionWithMeta
=
func
()
string
{
v
:=
version
.
Version
if
GitCommit
!=
""
{
v
+=
"-"
+
GitCommit
[
:
8
]
if
len
(
GitCommit
)
>=
8
{
v
+=
"-"
+
GitCommit
[
:
8
]
}
else
{
v
+=
"-"
+
GitCommit
}
}
if
GitDate
!=
""
{
v
+=
"-"
+
GitDate
...
...
op-node/cmd/main.go
View file @
d1cd9482
...
...
@@ -32,7 +32,11 @@ var (
var
VersionWithMeta
=
func
()
string
{
v
:=
version
.
Version
if
GitCommit
!=
""
{
v
+=
"-"
+
GitCommit
[
:
8
]
if
len
(
GitCommit
)
>=
8
{
v
+=
"-"
+
GitCommit
[
:
8
]
}
else
{
v
+=
"-"
+
GitCommit
}
}
if
GitDate
!=
""
{
v
+=
"-"
+
GitDate
...
...
op-program/host/cmd/main.go
View file @
d1cd9482
...
...
@@ -21,7 +21,11 @@ var (
var
VersionWithMeta
=
func
()
string
{
v
:=
version
.
Version
if
GitCommit
!=
""
{
v
+=
"-"
+
GitCommit
[
:
8
]
if
len
(
GitCommit
)
>=
8
{
v
+=
"-"
+
GitCommit
[
:
8
]
}
else
{
v
+=
"-"
+
GitCommit
}
}
if
GitDate
!=
""
{
v
+=
"-"
+
GitDate
...
...
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