Giter Site home page Giter Site logo

undefined: strings.CutPrefix about cfssl HOT 3 OPEN

Hanoboo avatar Hanoboo commented on June 14, 2024 3
undefined: strings.CutPrefix

from cfssl.

Comments (3)

LufDevOps avatar LufDevOps commented on June 14, 2024

anyone has answer for this issue? i did reinstall go 1.20 version

from cfssl.

LufDevOps avatar LufDevOps commented on June 14, 2024

The problem when i try to build an image of my app to extract some metric and this happend in build binary step
image

So i think in your Dockerfile you need to change to golang image version:
37cbf756c82f6971303e
and you may need to change your system go version to >= 1.20
image
by doing:
Go to this link: https://go.dev/dl/
scroll down you will see:
image
click on that, scroll down to 1.20
image

  • cd Downloads
  • sudo tar -C /usr/local -xzf go1.20.linux-amd64.tar.gz
  • vim .zshrc
    -and add this line to .zshrc: - export PATH=$PATH:/usr/local/go/bin
    image
  • source .zshrc
  • go version
    ! After that you may need to restart vscode or computer so the vs can re detect the new go version
    image

and then i can build the image
image

from cfssl.

LufDevOps avatar LufDevOps commented on June 14, 2024

you may dont need to change the go system version, only need to change 1 line in Dockerfile to 1.20

from cfssl.

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.