Skip to content

Docker is broken due to go command changes #30

@lthown

Description

@lthown

` => CACHED [2/5] RUN apt update && apt install --no-install-recommends -y ca-certificates git golang 0.0s
=> ERROR [3/5] RUN go get github.com/bemasher/rtlamr 6.8s

[3/5] RUN go get github.com/bemasher/rtlamr:
6.314 # golang.org/x/xerrors
6.314 root/go/src/golang.org/x/xerrors/adaptor.go:178:33: undefined: any
6.314 root/go/src/golang.org/x/xerrors/adaptor.go:184:49: undefined: any
6.314 root/go/src/golang.org/x/xerrors/fmt.go:39:33: undefined: any
6.314 root/go/src/golang.org/x/xerrors/fmt.go:84:21: undefined: any
6.314 root/go/src/golang.org/x/xerrors/format.go:23:16: undefined: any
6.314 root/go/src/golang.org/x/xerrors/format.go:26:32: undefined: any
6.314 root/go/src/golang.org/x/xerrors/wrap.go:83:27: undefined: any


Dockerfile:15

13 | rtl-sdr &&
14 | rm -rf /var/lib/apt/lists/*
15 | >>> RUN go get github.com/bemasher/rtlamr
16 |
17 | # Copy files into place

ERROR: failed to build: failed to solve: process "/bin/sh -c go get github.com/bemasher/rtlamr" did not complete successfully: exit code: 2
root@docker:~/amridm2mqtt# go get github.com/bemasher/rtlamr
go: go.mod file not found in current directory or any parent directory.
'go get' is no longer supported outside a module.
To build and install a command, use 'go install' with a version,
like 'go install example.com/cmd@latest'
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.`

I also tried editing the Dockerfile to use go install github.com/bemasher/rtlamr@latest and it also failed:
> [3/5] RUN go install github.com/bemasher/rtlamr@latest: 1.023 package github.com/bemasher/rtlamr@latest: cannot use path@version syntax in GOPATH mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions