Giter VIP home page Giter VIP logo

Comments (14)

bokunodev avatar bokunodev commented on August 30, 2024 32

Solution and temporary fix:
go workspace is controlled by GOWORK env var, you can temporarily disable workspace by setting GOWORK to off.
GOWORK=off cobra-cli init .

from cobra-cli.

the-Fitz avatar the-Fitz commented on August 30, 2024 14

Still an issue. Workspaces isn't going anywhere and most new projects will likely use it, so I would recommend prioritizing this issue.

from cobra-cli.

angelorc avatar angelorc commented on August 30, 2024 9

same here

from cobra-cli.

zapateo avatar zapateo commented on August 30, 2024 4

Same problem

from cobra-cli.

jarvanstack avatar jarvanstack commented on August 30, 2024 1

same problem, I have given up on not using go.work

from cobra-cli.

kmpm avatar kmpm commented on August 30, 2024 1

@bokunodev , nice workaround.
cobra-cli should perhaps show a better error message describing this workaround.

from cobra-cli.

github-actions avatar github-actions commented on August 30, 2024 1

This issue is being marked as stale due to a long period of inactivity

from cobra-cli.

github-actions avatar github-actions commented on August 30, 2024

This issue is being marked as stale due to a long period of inactivity

from cobra-cli.

crosslogic avatar crosslogic commented on August 30, 2024

Same problem

from cobra-cli.

github-actions avatar github-actions commented on August 30, 2024

This issue is being marked as stale due to a long period of inactivity

from cobra-cli.

Astenna avatar Astenna commented on August 30, 2024

Same problem

from cobra-cli.

QuinnCiccoretti avatar QuinnCiccoretti commented on August 30, 2024

If your workspace looks something like:

#workspace
module1/
module2/
cli
go.work

you can do something like

mkdir /tmp/cli && cd /tmp/cli
go mod init cli
cobra-cli init
cp /tmp/cli/ /path/to/workspace/cli
cd /path/to/workspace
go work use cli

and it will get you the boilerplate you want.

from cobra-cli.

github-actions avatar github-actions commented on August 30, 2024

This issue is being marked as stale due to a long period of inactivity

from cobra-cli.

abaldeweg avatar abaldeweg commented on August 30, 2024

+1

from cobra-cli.

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.