Comments (4)
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).
So turns out that android build without some Termux patches works only partially
$ /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 golang
: termux/termux-packages/packages/golang/fix-hardcoded-etc-resolv-conf.sh which fixes DNS resolving on Android
UPD2: This is actually a bug of golang
on Android: golang/go#8877
from chezmoi.
This is something to do with your system. This is not a bug in chezmoi.
from chezmoi.
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:
- Build the Android binaries with cgo. This will require the Android SDK.
- Add a user-configurable DNS server in chezmoi's config and use that on Android.
- Use https://github.com/mtibben/androiddnsfix.
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?
from chezmoi.
Patch in Termux is for golang
itself. So any binaries built in Termux are patched:
$ 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)
from chezmoi.
Related Issues (20)
- splitList and quoteList don't work in pair HOT 1
- No "CHEZMOI_" env vars visible to plugins HOT 1
- Do not list empty directories and directories with only ignored files/subdirectories in `unmanaged` output HOT 1
- `chezmoi remove` removes the whole directory instead of removing a target HOT 3
- How to set an expiration time for "run_onchange_" script? HOT 10
- Automated push to chezmoi.io fails with permission denied error HOT 1
- GitHub Actions tests on macOS occasionally fail due to unexpected output from KeePassXC in open mode
- Provide `.chezmoi.script` context for templated scripts
- A way to set command aliases HOT 1
- get.chezmoi.io still returns old install script HOT 1
- chezmoi is not respecting my .chezmoiignore HOT 4
- git-commit-message don't understand copies detected by git
- Comments containing {{ and }} break .chezmoiignore on Windows HOT 2
- How to manage chezmoi config file with chezmoi itself? HOT 1
- Improve automatic dependency updates HOT 1
- Unable to add `~/.config/chezmoi/chezmoi.toml` to chezmoi HOT 12
- Adding local changes to target which is templated HOT 3
- Cannot auto commit/push scripts HOT 11
- promptChoice but allow for selecting multiple choices HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chezmoi.