Skip to content

[feature] randomize binary names #500

Description

@laurentsimon

We currently use hard-coded names for builder binaries and project binaries we compile. This has some downsides:

  1. If a user calls our builder multiple times in the same workflow, they will need to make the build sequential or it will likely fail. (I've seen one user do this already)
  2. If user uses multiple builder calls in the same workflow, the workflow will race to download the binary and it could be corrupt and the run will fail
  3. If the generated binary is the same as a file in the repo, it could overwrite it. (not sure if this could lead to problems or not)

So I propose randomizing the names of the generated binaries. Anyone OK with that?

I will add an e2e tests as well.

Metadata

Metadata

Assignees

Labels

area:genericIssue with the generic generatorarea:goIssue related to the Go ecosystemtype:featureNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions