Giter VIP home page Giter VIP logo

Comments (3)

jrasell avatar jrasell commented on May 30, 2024 1

Hi @andryyy and thanks for the additional details. I have raised PR #43 to fix this problem.

from damon.

jrasell avatar jrasell commented on May 30, 2024

Hi @andryyy, could you provide a little context on what is not working for you currently with the Dockerfile?

from damon.

andryyy avatar andryyy commented on May 30, 2024

Oh, sorry, just had to update Go to 1.18 in the Dockerfile for it to build. :)

Also sorry for not adding useful information to this issue. The previous error looked like this:

❯ docker build --platform linux/amd64 .
Sending build context to Docker daemon  839.2kB
Step 1/23 : FROM golang:1.17 AS devbuild
1.17: Pulling from library/golang
d836772a1c1f: Pull complete 
66a9e63c657a: Pull complete 
d1989b6e74cf: Pull complete 
c28818711e1e: Pull complete 
9d6246ba248c: Pull complete 
21d43f0d73c2: Pull complete 
d8a1c5873f40: Pull complete 
Digest: sha256:87262e4a4c7db56158a80a18fefdc4fee5accc41b59cde821e691d05541bbb18
Status: Downloaded newer image for golang:1.17
 ---> 742df529b073
Step 2/23 : ENV CGO_ENABLED=0
 ---> Running in 57df848d3402
Removing intermediate container 57df848d3402
 ---> 1b0d218f3967
Step 3/23 : WORKDIR /build
 ---> Running in 87b03544d57c
Removing intermediate container 87b03544d57c
 ---> 758af69856ec
Step 4/23 : COPY . ./
 ---> b91c7a79c0f9
Step 5/23 : RUN go build -o damon ./cmd/damon
 ---> Running in 460f377e9824
go: downloading github.com/gdamore/tcell/v2 v2.5.3
go: downloading github.com/rivo/tview v0.0.0-20220911190240-55965cf21d8e
go: downloading github.com/jessevdk/go-flags v1.5.0
go: downloading github.com/hashicorp/nomad/api v0.0.0-20210804153318-c67b69bd0cc6
go: downloading github.com/olekukonko/tablewriter v0.0.5
go: downloading golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2
go: downloading github.com/mattn/go-runewidth v0.0.13
go: downloading github.com/gorilla/websocket v1.4.2
go: downloading github.com/hashicorp/cronexpr v1.1.1
go: downloading github.com/hashicorp/go-cleanhttp v0.5.2
go: downloading github.com/hashicorp/go-rootcerts v1.0.2
go: downloading github.com/mitchellh/mapstructure v1.4.1
go: downloading github.com/gdamore/encoding v1.0.0
go: downloading github.com/lucasb-eyer/go-colorful v1.2.0
go: downloading golang.org/x/term v0.0.0-20220722155259-a9ba230a4035
go: downloading golang.org/x/text v0.3.7
go: downloading github.com/rivo/uniseg v0.4.2
# github.com/rivo/uniseg
/go/pkg/mod/github.com/rivo/[email protected]/properties.go:137:6: missing function body
/go/pkg/mod/github.com/rivo/[email protected]/properties.go:137:20: syntax error: unexpected [, expecting (
note: module requires Go 1.18
The command '/bin/sh -c go build -o damon ./cmd/damon' returned a non-zero code: 2

from damon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.