These are the commands I am using. (Taken from Build and Update Whonix ™ from Source Code)
git clone --jobs=4 --recursive https://github.com/Whonix/Whonix
cd Whonix
git verify-tag 15.0.0.3.6-developers-only
git checkout 15.0.0.3.6-developers-only
git describe
(git describe
just now added as a test.)
git describe
should output
15.0.0.3.6-developers-only
sudo ~/Whonix/whonix_build --flavor whonix-gateway-xfce --target virtualbox --build
Build output should contain pretty early (copy to text editor and search perhaps):
INFO: Variable anon_dist_build_version was unset. Auto detected. Set to: 15.0.0.3.6
Later on the build output should include:
- true '/home/user/Whonix/help-steps/git_sanity_test INFO: git_tag_nearest: 15.0.0.3.6-developers-only ’
- true '/home/user/Whonix/help-steps/git_sanity_test INFO: git_tag_current: 15.0.0.3.6-developers-only
Building form a non-tagged release is actually deliberately protected against and made a tiny bit more difficult. Requires adding:
--allow-untagged true --allow-uncommitted true
(But this is mentioned in the error message when that happens.)
Build would actually fail, but also advice why.
-
true ‘---------------------------------------------------------------------’
-
true '/home/user/Whonix/help-steps/git_sanity_test ERROR: Git reports uncommitted changes! ’
-
true '/home/user/Whonix/help-steps/git_sanity_test INFO: (And you are not using --allow-uncommitted true, which you also should not do for security reasons, unless you are a developer or advanced user and know what you are doing. Such as in case you added custom code.) ’
-
git_sanity_test_hint
-
true '/home/user/Whonix/help-steps/git_sanity_test INFO: (As a developer or advanced user you might want to use:)
–allow-untagged true --allow-uncommitted true
’
-
true '/home/user/Whonix/help-steps/git_sanity_test INFO: Running “git status” for your convenience. ’
-
git status
HEAD detached at 15.0.0.3.6-developers-only
Untracked files:
(use “git add …” to include in what will be committed)
packages/binaries-freedom/
packages/kicksecure-base-files/
nothing added to commit but untracked files present (use “git add” to track)
- true '/home/user/Whonix/help-steps/git_sanity_test INFO: Running git “clean -d --force --force --dry-run” for your convenience. ’
- git clean -d --force --force --dry-run
Would remove packages/binaries-freedom/
Would remove packages/kicksecure-base-files/
- true '/home/user/Whonix/help-steps/git_sanity_test You most likely like to run:
/home/user/Whonix/help-steps/cleanup-files
or if you know what you are doing:
git clean -d --force --force
git reset --hard
’
- true ‘---------------------------------------------------------------------’
- error ‘Uncommitted changes! See above!’
- echo ‘############################################################’
############################################################
- echo ‘ERROR: Uncommitted changes! See above!’
ERROR: Uncommitted changes! See above!
- echo ‘############################################################’
############################################################
- error_ ‘See above! (There should be a bold, red message surrounded by blue hashtags (#).)’
pre: line 30: error_: command not found
git clean -d --force --force
solves that.
Btw just finished testing Whonix git tag 15.0.0.3.9
which is uploaded already with a call for testers coming soon.
(Also has such an extraneous folder.)
If that does not work for you, please paste the commands you’re using here. Or post the output of a whole build until around the git_tag_current
line.