What happened?
At this moment of writing, the official kernel git is down or overloaded. In any case, it returns error 502. Trying to work around this by setting OFFLINE_WORK=yes does not work as expected however.
The script (namely lib/functions/general/git-ref2info.sh I believe) is still trying to fetch a git SHA1 online and will fail if it can't.
I suspect this can be solved with a simple if [ ! offline ] in lib/functions/general/git-ref2info.sh, but since this file specifically says This works under memoize-cached.sh::run_memoized() -- which is full of tricks., I decided better not to touch it myself.
Example log:
[...]
[🌿] * [ You are working offline! ]
[🌿] * [ Sources, time and host will not be checked ]
[...]
[✨] Repeat Build Options (early) [ ./compile.sh nanopi-r5c-edge kernel-config OFFLINE_WORK=yes ]
[🌱] Producing new & caching [ GIT_INFO_KERNEL ]
[🌱] Fetching SHA1 of 'branch' 'refs/heads/linux-6.8.y' [ https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git ]
fatal: unable to access 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/': The requested URL returned error: 502
[🌱] SHA1 of branch refs/heads/linux-6.8.y [ '' ]
[🌱] Failed to fetch SHA1 of 'branch' 'refs/heads/linux-6.8.y' [ https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git ]
[🌱] Fetching SHA1 of 'branch' 'linux-6.8.y' [ https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git ]
fatal: unable to access 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/': The requested URL returned error: 502
[🌱] SHA1 of branch linux-6.8.y [ '' ]
[🌱] Failed to fetch SHA1 of 'branch' 'linux-6.8.y' [ https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git ]
[💥] error! [ Failed to fetch SHA1 of 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git' 'branch' 'linux-6.8.y' - make sure it's correct ]
[💥] Exiting with error 43 [ at /home/user/build-fork/lib/functions/logging/traps.sh:1
exit_with_error() --> lib/functions/logging/traps.sh:1
memoized_git_ref_to_info() --> lib/functions/general/git-ref2info.sh:75
run_memoized() --> lib/functions/general/memoize-cached.sh:69
[...]
How to reproduce?
Try to build with OFFLINE_WORK=yes while https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ is not reachable.
Branch
main (main development branch)
On which host OS are you running the build script and observing this problem?
Ubuntu 24.04 Noble
Are you building on Windows WSL2?
Relevant log URL
No response
Code of Conduct
What happened?
At this moment of writing, the official kernel git is down or overloaded. In any case, it returns error 502. Trying to work around this by setting
OFFLINE_WORK=yesdoes not work as expected however.The script (namely
lib/functions/general/git-ref2info.shI believe) is still trying to fetch a git SHA1 online and will fail if it can't.I suspect this can be solved with a simple
if [ ! offline ]inlib/functions/general/git-ref2info.sh, but since this file specifically saysThis works under memoize-cached.sh::run_memoized() -- which is full of tricks., I decided better not to touch it myself.Example log:
How to reproduce?
Try to build with
OFFLINE_WORK=yeswhile https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ is not reachable.Branch
main (main development branch)
On which host OS are you running the build script and observing this problem?
Ubuntu 24.04 Noble
Are you building on Windows WSL2?
Relevant log URL
No response
Code of Conduct