Skip to content

Problems finding files in devbox shell #2829

Description

@pluxain

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/v2@v2.9.9/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

  1. Install system dependencies
  2. add go to devbox environment
  3. run a devbox shell
  4. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageIssue needs triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions