Skip to content

Commit 5e06831

Browse files
authored
Merge pull request #7 from nomennescio/main
Report versions
2 parents 78bfcb8 + 6dc5c2d commit 5e06831

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ RUN set -ex; \
1818
zlib1g-dev \
1919
libpq-dev \
2020
libsnappy-dev \
21+
libzstd-dev \
2122
; \
2223
rm -rf /var/lib/apt/lists/*;
2324

@@ -56,7 +57,7 @@ RUN set -ex; \
5657
./extra/talks \
5758
; \
5859
# reimage factor.image
59-
./factor -run=codewars.imager;
60+
./factor -factor-version="$FACTOR_VERSION" -testest-version="$TESTEST_VERSION" -run=codewars.imager;
6061

6162
ENV PATH=/opt/factor:$PATH \
6263
FACTOR_ROOTS=/workspace

info/postbuild/postbuild.factor

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
! copyright 2024 nomennescio
2-
USING: accessors assocs compiler.errors io kernel namespaces prettyprint sequences sequences.extras sets source-files.errors tools.errors ;
2+
USING: accessors assocs compiler.errors formatting io kernel namespaces prettyprint sequences sequences.extras sets source-files.errors system tools.errors ;
33
IN: postbuild
44

5+
: report-factor-version ( -- )
6+
"## Factor version : " write vm-version print
7+
vm-git-id dup "git ID <a href=\"https://github.com/factor/factor/commit/%s\">%s</a>\n" printf
8+
;
9+
10+
: report-testest-version ( -- )
11+
"## Testest version : " write "testest-version" get print
12+
;
13+
514
: report-missing-libraries ( -- )
615
linkage-errors get values [ error>> no-such-library? ] [ error>> name>> ] filter-map members
716
[ "## Missing libraries" print
@@ -10,6 +19,8 @@ IN: postbuild
1019
;
1120

1221
: run ( -- )
22+
report-factor-version
23+
report-testest-version
1324
report-missing-libraries
1425
;
1526

0 commit comments

Comments
 (0)