Giter VIP home page Giter VIP logo

Comments (2)

zsistla avatar zsistla commented on June 3, 2024 1

Hi @ralvecosta,

Sorry to hear about the error.

Starting with g 1.16, go requires use of modules by default.

From the release notes:

Note that Go 1.16 requires use of Go modules by default, now that, according to our 2020 Go Developer Survey, 96% of Go developers have made the switch. We recently added official documentation for developing and publishing modules.

However, in the release notes(and thanks to @joeshaw for also providing the details), they also documented how to change the default.

Modules

Module-aware mode is enabled by default, regardless of whether a go.mod file is present in the current working directory or a parent directory. More precisely, the GO111MODULE environment variable now defaults to on. To switch to the previous behavior, set GO111MODULE to auto.

This can be accomplished in a variety of ways. 2 of those ways are:

  1. Add export GO111MODULE=auto to the .bashrc file
    OR
  2. From the system prompt, type export GO111MODULE=auto && go1.16 env GO111MODULE auto

@ralvescosta please let us know if one of the above solves the issue for you.

Unfortunately, for backwards compatibility purposes, we still support a very old version of go and so are not quite able to move forward to current best practices as recommended by @joeshaw

from c-sdk.

ralvescosta avatar ralvescosta commented on June 3, 2024

I can't compile the daemon, I got the same error. I'm tried using go 1.16.7 and 1.17.1 and in both, I received the same error.

from c-sdk.

Related Issues (17)

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.