wader / ansisvg

Convert ANSI to SVG
MIT License
89 stars 9 forks source link

build errors #1

Closed ahillio closed 2 years ago

ahillio commented 2 years ago

Hello and happy first issue! It's a great sounding project, I hope you enjoy making it!

I'm getting errors trying to build...

❯ go install github.com/wader/ansisvg@master
can't load package: package github.com/wader/ansisvg@master: can only use path@version syntax with 'go get'

git clone git@github.com:wader/ansisvg.git
cd ansisvg
❯ go build -o ansisvg main.go
build command-line-arguments: cannot load embed: malformed module path "embed": missing dot in first path element

In case my go env details are helpful in this:

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/alec/.cache/go-build"
GOENV="/home/alec/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/alec/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go-1.13"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.13/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/alec/code/software_projects/ansisvg/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build483368982=/tmp/go-build -gno-record-gcc-switches"
ahillio commented 2 years ago

Some nice stranger on unix.stackexchange said they were able to build this without any problem :)

wader commented 2 years ago

Hello, thanks! yes was fun to make it :)

It looks like you'r using go 1.13? to build i think you will need at least go 1.16. Is it possible for you to update? I should probably add a note about that.

Let me know how it goes

ahillio commented 2 years ago

Yes upgrading the go version allowed go install github.com/wader/ansisvg@master to work.