Comments (5)
Have a shot-in-the-dark. @abhillman could you help verify it?
#13907
from cargo.
Could you run ifconfig lo0
or something similar, and check if the loopback device is up and 127.0.0.1 is its address?
from cargo.
Indeed, loopback is up, but is it assigned a LAN IP. I had noticed this as well; it is quite curious.
$ ifconfig lo0
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 192.168.1.88 netmask 0xffffffff
nd6 options=201<PERFORMNUD,DAD>
$ ifconfig | rg '127' # no result
$ ifconfig | rg 'localhost' # no result
from cargo.
This appears to resolve the issues with cargo run clippy --fix
and the above rust code:
$ sudo ifconfig lo0 alias 127.0.0.1
That said, I don't believe that macOS ships with the 127.0.0.1
alias on lo0
. I will see what I can do to run a test with a fresh install on a VM and/or CI. If indeed, macOS does not ship with 127.0.0.1
as a loopback alias, it seems to me that some kind of workaround for cargo
may be appropriate. lmkwyt.
from cargo.
Ok, a vm running a fresh install of macOS 14.3
indeed has 127.0.0.1
set up as an alias. I will see what happens with an upgrade to 14.4
. This may just be a "my box" (perhaps sometimes other boxes?) problem.
from cargo.
Related Issues (20)
- No way to specify linker arguments via rustflags for dependency build scripts with `--target` HOT 4
- called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" } HOT 3
- cargo new: Confusing error message about adding to a workspace HOT 4
- cargo publish should refuse an out-of-date lockfile HOT 4
- Non determinist vendoring of git dependencies HOT 10
- `cargo update --config net.git-fetch-with-cli=true` fetches using git2 HOT 1
- "Cargo install" should provide download binaries only from crate.io if availibale rather than build these binaries every time when calling cargo install HOT 3
- cargo install [--git?] ignores .cargo/config.toml, making packages publishable-but-unbuildable, allthewhile they work when built normally HOT 8
- add: Use single quotes for target headers
- Combining `[patch]` and `-Zbuild-std` logs that patches are unused even when they are
- cargo publish refuses path= dependencies, even though it probably oughtn't HOT 3
- Cargo Tree: New format string parameter HOT 3
- 2024 implicit feature migration deletes dependency features HOT 8
- Update feature docs for no implicit features in 2024
- `cargo fmt` does not handle workspace member "Cargo.toml" being a symlink; gives error "Failed to find targets" HOT 1
- Bad error message when a weak dep features's depedency is an unused optional dependency HOT 1
- Bad error message when a strong dep features's depedency is an unused optional dependency HOT 3
- Suggested adding `dep:foo` to the `foo` feature if it exists for unused optional dependencies HOT 1
- `cargo package` includes multiple README files when the case is not all upper-case HOT 1
- `cargo check --all` can hide issues in what features are requested in Cargo.toml HOT 1
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 cargo.