Skip to content

[go_mockery] Support version 2 and version 3 #590

@jaudiger

Description

@jaudiger

Following comment #531 (comment), we should support both maintained versions of go-mockery. It'll let us package new packages such as terragrunt which relies on go-mockery 2 to be built today.

A good example on how to do it in a straightforward way is to look at the [python](https://github.com/brioche-dev/brioche-packages/blob/c4e1355887f80fdf29796502c5d92f68db7864ea/packages/python/project.bri#L6) package with a few adaptations:

export const project = {
  name: "go_mockery",
  version: "3.2.5",
  extra: {
    currentMajorVersion: "3",
    majorVersions: {
      "3": "3.2.5",
      "2": "2.53.4",
    },
  },
};

Two additional things that will need to be taken into account:

  • Update the test method to ensure all the major versions are tested
  • Tweak the live-update method to retrieve the latest version of both major releases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions