Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report versions #7

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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