Giter VIP home page Giter VIP logo

Comments (5)

alecthomas avatar alecthomas commented on May 25, 2024 1

Because it complicates the release process, which is currently: tag a commit.

The command is a separate module to avoid polluting Participle's dependencies. Without the replace, a release would entail updating the cmd's go.mod file to point to the future version, committing it, then tagging that commit with that version.

from participle.

alecthomas avatar alecthomas commented on May 25, 2024

cmd/participle/go.mod is not designed to be installed remotely, as it has a replace directive. If you need static binaries they're available on the releases page.

Also scripts/participle works fine for me:

🐚 ~/dev/participle $ ./scripts/participle --help
Usage: participle <command>

A command-line tool for Participle.

Flags:
  -h, --help       Show context-sensitive help.
      --version

Commands:
  gen lexer <package> [<lexer>]
    Generate a lexer.

Run "participle <command> --help" for more information on a command.

from participle.

gaiaz-iusipov avatar gaiaz-iusipov commented on May 25, 2024

is not designed to be installed remotely

But why limit installation and execution? Virtually any Go module is available for execution with a simple 'go run' command.

For example it would be nice to have something like:

//go:generate go run github.com/alecthomas/participle/v2/cmd/[email protected] gen lexer ...

from participle.

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.