Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Allow for passing additional params used in installation of tools #55

Description

@pgt502

Currently, each tool is installed using go install command which is pretty limiting. Certain tools require arguments to be passed in when building them. In order to accommodate that, the go build command needs to be used.

Solution

Allow for passing extra parameters when building each tool which can be defined in the tools.json.

For example:

{
      "Repository": "github.com/golang-migrate/migrate/cli",
      "Commit": "4937cd088f7c7193ee59b319c1c2caa7482aae8e",
      "ExecutableName": "migrate",
      "PreParams": [
          "-tags", 
          "'postgres'"
      ]
    }

PreParams are the arguments passed in just after go build command and before the path and other arguments, which in this example will result in:

go build -tags 'postgres' -o <toolDirPath>/bin/migrate github.com/golang-migrate/migrate/cli

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions