Comments (7)
@peterzandbergen thanks for adding this to an issue. As you mentioned in Discord, this is most likely due to Devbox being compiled with cgo disabled. From the os/user
docs:
For most Unix systems, this package has two internal implementations of resolving user and group ids to names, and listing supplementary group IDs. One is written in pure Go and parses /etc/passwd and /etc/group. The other is cgo-based and relies on the standard C library (libc) routines such as getpwuid_r, getgrnam_r, and getgrouplist.
When cgo is available, and the required routines are implemented in libc for a particular platform, cgo-based (libc-backed) code is used. This can be overridden by using osusergo build tag, which enforces the pure Go implementation.
I'd rather not enable cgo, so we should track down why we need the current user and see if there's a way to degrade gracefully.
from devbox.
I double checked, and I can't find anywhere that devbox or its dependencies prints this error. All of our calls to the os/user
package have annotated errors. I also don't see "cannot find name for group ID" in the Go stdlib source.
This might be from some other program that's running as part of an init hook, plugin, or shell rcfile.
@peterzandbergen I saw your comment about adding more info. I'll wait until we have the devbox.json and DEVBOX_DEBUG=1
logs before digging further.
from devbox.
Here are devbox.json and the output of devbox shell with DEVBOX_DEBUG=1
from devbox.
Taken from the terminal
from devbox.
Looking at the last log I thought that this file might be useful. It is the file that is mentioned at line 36 in the previous log file I sent.
from devbox.
I ran the bash with -x and the rc file and this is the begin of the output where the error messages are written
from devbox.
It looks like groups is the culprit
See the difference between the nix and non nix version.
from devbox.
Related Issues (20)
- Unable to find libclang HOT 1
- Cannot find flake in the flake registries when instaling python311Packages.torch-bin
- Add name/description to devbox init
- `refresh` alias overwrites init_hook
- Add ability to pass arbitrary flags to process-compose
- Use devbox project to manage utilities like process compose.
- Running a script inside devbox shell throws `file not found` error HOT 3
- Configurable plugins
- Provide `devbox (global) outdated`
- Request to add hyperdb-python
- CLI Login Prompt has weird interactions with VSCode extension
- [Package Issue Report]: protobufjs-cli
- Start of container with generated Dockerfile is super slow
- Error installing [email protected] HOT 1
- VS Code terminal somehow start devbox shell HOT 1
- devbox shell cannot start (error in the nix version detection)
- kicad5, kicad6, and kicad7
- Jetbrains IDE, rubymine
- Cannot set PATH env var in both a plugin and devbox.json
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 devbox.