Problems finding files in devbox shell
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 55/100
Piste de recherche
Start with the reported devbox.json and reproduce the Go example command in a Devbox shell on Linux, comparing it with the working host environment. Investigate how Devbox exposes system dependencies to Go builds and identify why X11/Xlib.h is unavailable; done when the example compiles in the documented setup or the required dependency is clearly documented.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
What happened?
I try to use https://github.com/hajimehoshi/ebiten Go game engine and followed the instructions.
To confirm the environment, one can run the following command: go run github.com/hajimehoshi/ebiten/v2/examples/rotate@latest
If I install go on my computer (Ubuntu) with all the required system dependencies and run go run github.com/hajimehoshi/ebiten/v2/examples/rotate@latest then it works.
If I remove Go from my computer, create a devbox environment, add Go package to it, open a devbox shell and then run the same command I get an error:
# github.com/hajimehoshi/ebiten/v2/internal/glfw
In file included from pkg/mod/github.com/hajimehoshi/ebiten/[email protected]/internal/glfw/native_linbsd.go:14:
./glfw3native_unix.h:105:12: fatal error: X11/Xlib.h: No such file or directory
105 | #include <X11/Xlib.h>
| ^~~~~~~~~~~~
compilation terminated.
Steps to reproduce
- Install system dependencies
- add go to devbox environment
- run a devbox shell
- run
go run github.com/hajimehoshi/ebiten/v2/examples/rotate@latest
Command
shell
devbox.json
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.16.0/.schema/devbox.schema.json",
"packages": ["curl@latest", "gettext@latest", "go@latest"],
"env": {
"GOPATH": "$PWD",
"PATH": "$PATH:$PWD"
},
"shell": {
"init_hook": ["echo 'Welcome to devbox!' > /dev/null"],
"scripts": {
"test": ["echo \"Error: no test specified\" && exit 1"]
}
}
}
Devbox version
0.17.2
Nix version
nix (Nix) 2.31.1
What system does this bug occur on?
Linux (x86-64)
Debug logs
No response
- Langage dominant
- Go
- Étoiles
- 12.4k
- Forks
- 358
- Merge moyen
- 17 h 12 min
- PR mergées (30 j)
- 31
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de jetify-com/devbox
-
feature triage
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
jetify-com/devbox#3038 ·
Les mainteneurs répondent en général sous 1 jour
-
pulumi is outdatedOuvertebug p4 package processed triage unrelated
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
jetify-com/devbox#2898 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
p4 processed unrelated
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
jetify-com/devbox#2750 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
StorydenOuvertep4 package processed triage unrelated
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
jetify-com/devbox#2685 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
[Plugin Request]: apacheKafkaOuvertelooks easy p4 package processed triage
Difficulté 2/5 1-3 heures Accessibilité débutants 60/100
jetify-com/devbox#2656 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de jetify-com/devbox
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
rishikanthc/Scriberr#506 ·
-
[Bug] rollingUpdatePartition panics when live StatefulSet replicas sit far below the desired countOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
sgl-project/rbg#547 ·
Les mainteneurs répondent en général sous 1 jour
-
area: frontend priority: normal
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
area/validator
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
TestAutonomousStop_ReportsObservedState fails under host load: 1s wall-clock ceiling vs 250ms cycleOuvertetype:bug
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
nightgauge/nightgauge#2909 ·
Les mainteneurs répondent en général sous 1 jour