forked from Mirror/pmbootstrap
Always set GOCACHE during build and let it point to pmbootstrap's work dir. This has a similar effect as using ccache for C/C++. Set GOMODCACHE conditionally: this is for caching the go modules (git repositories) that get cloned during a build if they are not bundled with the source. Usually APKBUILDs should cache them, but when using pmbootstrap build --src, they would get downloaded over and over again. Set GOMODCACHE automatically for --src and allow enabling/disabling this manually with new --go-mod-cache / --no-go-mod-cache. This speeds up multiple iterations of building the same package significantly. I'm using it for: $ pmbootstrap build postmarketos-mkinitfs --src=... I've verified that using the same GOCACHE dir for multiple architectures doesn't result in build artifacts for the wrong arch getting used. Reviewed-by: Clayton Craft <clayton@craftyguy.net> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230223064743.1773-1-ollieparanoid@postmarketos.org%3E |
||
---|---|---|
.. | ||
pmb_test | ||
testdata | ||
pytest.ini | ||
test_apk.py | ||
test_apk_static.py | ||
test_aportgen.py | ||
test_aportgen_device_wizard.py | ||
test_arguments.py | ||
test_bootimg.py | ||
test_build_is_necessary.py | ||
test_build_package.py | ||
test_chroot_interactive_shell.py | ||
test_config_init.py | ||
test_config_pmaports.py | ||
test_config_user.py | ||
test_config_workdir.py | ||
test_cross_compile_distcc.py | ||
test_crossdirect.py | ||
test_envkernel.py | ||
test_file.py | ||
test_folder_size.py | ||
test_frontend.py | ||
test_helpers_git.py | ||
test_helpers_lint.py | ||
test_helpers_package.py | ||
test_helpers_pmaports.py | ||
test_helpers_repo.py | ||
test_helpers_repo_missing.py | ||
test_helpers_status.py | ||
test_helpers_ui.py | ||
test_install.py | ||
test_kconfig_check.py | ||
test_keys.py | ||
test_mount.py | ||
test_newapkbuild.py | ||
test_parse_apkbuild.py | ||
test_parse_apkindex.py | ||
test_parse_depends.py | ||
test_parse_deviceinfo.py | ||
test_pkgrel_bump.py | ||
test_qemu_running_processes.py | ||
test_questions.py | ||
test_run_core.py | ||
test_shell_escape.py | ||
test_version.py | ||
test_version_validate.py |