danfragoso / thdwb

🌭 The hotdog web browser and browser engine 🌭
MIT License
1.13k stars 58 forks source link

makefile does not use go modules #7

Closed Merith-TK closed 4 years ago

Merith-TK commented 4 years ago
Building THDWB - ����
mustard/app.go:4:2: cannot find package "github.com/go-gl/gl/v4.1-core/gl" in any of:
    /usr/lib/go/src/github.com/go-gl/gl/v4.1-core/gl (from $GOROOT)
    /home/merith/.go/src/github.com/go-gl/gl/v4.1-core/gl (from $GOPATH)
mustard/button.go:5:2: cannot find package "github.com/go-gl/glfw/v3.3/glfw" in any of:
    /usr/lib/go/src/github.com/go-gl/glfw/v3.3/glfw (from $GOROOT)
    /home/merith/.go/src/github.com/go-gl/glfw/v3.3/glfw (from $GOPATH)
gg/context.go:14:2: cannot find package "github.com/golang/freetype/raster" in any of:
    /usr/lib/go/src/github.com/golang/freetype/raster (from $GOROOT)
    /home/merith/.go/src/github.com/golang/freetype/raster (from $GOPATH)
gg/util.go:16:2: cannot find package "github.com/golang/freetype/truetype" in any of:
    /usr/lib/go/src/github.com/golang/freetype/truetype (from $GOROOT)
    /home/merith/.go/src/github.com/golang/freetype/truetype (from $GOPATH)
gg/context.go:15:2: cannot find package "golang.org/x/image/draw" in any of:
    /usr/lib/go/src/golang.org/x/image/draw (from $GOROOT)
    /home/merith/.go/src/golang.org/x/image/draw (from $GOPATH)
gg/context.go:16:2: cannot find package "golang.org/x/image/font" in any of:
    /usr/lib/go/src/golang.org/x/image/font (from $GOROOT)
    /home/merith/.go/src/golang.org/x/image/font (from $GOPATH)
gg/context.go:17:2: cannot find package "golang.org/x/image/font/basicfont" in any of:
    /usr/lib/go/src/golang.org/x/image/font/basicfont (from $GOROOT)
    /home/merith/.go/src/golang.org/x/image/font/basicfont (from $GOPATH)
gg/context.go:18:2: cannot find package "golang.org/x/image/math/f64" in any of:
    /usr/lib/go/src/golang.org/x/image/math/f64 (from $GOROOT)
    /home/merith/.go/src/golang.org/x/image/math/f64 (from $GOPATH)
gg/path.go:7:2: cannot find package "golang.org/x/image/math/fixed" in any of:
    /usr/lib/go/src/golang.org/x/image/math/fixed (from $GOROOT)
    /home/merith/.go/src/golang.org/x/image/math/fixed (from $GOPATH)
make: *** [Makefile:15: build] Error 1

possible fix? use go modules to handle imports, makes it easier and will make it so make can autofetch the libs needed,

danfragoso commented 4 years ago

Fixed on https://github.com/danfragoso/thdwb/commit/4ce16f6256ff9b6de863b60725198dbd4a0c27bc