Skip to content

Commit

Permalink
Merge pull request #7 from nomennescio/main
Browse files Browse the repository at this point in the history
Report versions
  • Loading branch information
nomennescio authored Jan 25, 2024
2 parents 78bfcb8 + 6dc5c2d commit 5e06831
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN set -ex; \
zlib1g-dev \
libpq-dev \
libsnappy-dev \
libzstd-dev \
; \
rm -rf /var/lib/apt/lists/*;

Expand Down Expand Up @@ -56,7 +57,7 @@ RUN set -ex; \
./extra/talks \
; \
# reimage factor.image
./factor -run=codewars.imager;
./factor -factor-version="$FACTOR_VERSION" -testest-version="$TESTEST_VERSION" -run=codewars.imager;

ENV PATH=/opt/factor:$PATH \
FACTOR_ROOTS=/workspace
Expand Down
13 changes: 12 additions & 1 deletion info/postbuild/postbuild.factor
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
! copyright 2024 nomennescio
USING: accessors assocs compiler.errors io kernel namespaces prettyprint sequences sequences.extras sets source-files.errors tools.errors ;
USING: accessors assocs compiler.errors formatting io kernel namespaces prettyprint sequences sequences.extras sets source-files.errors system tools.errors ;
IN: postbuild

: report-factor-version ( -- )
"## Factor version : " write vm-version print
vm-git-id dup "git ID <a href=\"https://github.com/factor/factor/commit/%s\">%s</a>\n" printf
;

: report-testest-version ( -- )
"## Testest version : " write "testest-version" get print
;

: report-missing-libraries ( -- )
linkage-errors get values [ error>> no-such-library? ] [ error>> name>> ] filter-map members
[ "## Missing libraries" print
Expand All @@ -10,6 +19,8 @@ IN: postbuild
;

: run ( -- )
report-factor-version
report-testest-version
report-missing-libraries
;

Expand Down

0 comments on commit 5e06831

Please sign in to comment.