-
Notifications
You must be signed in to change notification settings - Fork 495
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
feat: Native Termux builds #3605
Comments
This is something to do with your system. This is not a bug in chezmoi. |
After switching to Termux's chezmoi I found out that after diffing with Termux build (and when all externals are downloaded), then diffing with official build works again (using cached externals). $ /data/data/com.termux/files/home/.local/bin/chezmoi diff
chezmoi: Get "https://github.com/macvk/dnsleaktest/raw/HEAD/dnsleaktest.py": dial tcp: lookup github.com on [::1]:53: read udp [::1]:48172->[::1]:53: read: connection refused
$ /data/data/com.termux/files/usr/bin/chezmoi diff
*diff here*
$ /data/data/com.termux/files/home/.local/bin/chezmoi diff
*diff here* UPD: I did some research and Termux actually has a patch for UPD2: This is actually a bug of |
Thanks for the further investigation and apologies for the too-hasty fix. If I understand correctly, there are two ways for chezmoi to work around this bug in Go:
Of these, (1) is the cleanest but might not be supported by goreleaser (the tool chezmoi uses to build its release binaries), (2) has poor user experience, and (3) strikes me as too much of a hack. Does the Termux-built chezmoi binary have this same problem? |
Patch in Termux is for $ gitcd https://github.com/twpayne/chezmoi repos/chezmoi
Cloning into 'repos/chezmoi'...
remote: Enumerating objects: 76049, done.
remote: Counting objects: 100% (5230/5230), done.
remote: Compressing objects: 100% (583/583), done.
remote: Total 76049 (delta 4748), reused 4696 (delta 4627), pack-reused 70819
Receiving objects: 100% (76049/76049), 70.23 MiB | 4.79 MiB/s, done.
Resolving deltas: 100% (42413/42413), done.
$ go build
...
$ ./chezmoi diff -R
*diff here* (externals downloaded) |
For info, goreleaser is adding support for Termux in goreleaser/goreleaser#4901, which will be part of goreleaser v2.1.0 (not released yet). |
I've updated this issue to show that native builds for Termux would be an enhancement for chezmoi, but they are not something that I will work on myself because I do not use Termux and do not have access to a Termux environment. If someone could update chezmoi's GitHub Actions to take advantage of goreleaser/goreleaser#4901, that would be awesome. |
Describe the bug
chezmoi
on Android sometimes can't connect to DNS. So it can't download externalsTo reproduce
Idk, it just sometimes work and sometimes it doesn't
Expected behavior
No errors, externals are always can be downloaded
Output of command with the
--verbose
flagOutput of
chezmoi doctor
The text was updated successfully, but these errors were encountered: