Skip to content

Remove go generate from v2 build process #1801

Closed

Description

@abitrolly

My urfave/cli version is

v2

Checklist

  • Are you running the latest v2 release? The list of releases is here.
  • Did you check the manual for your release? The v2 manual is here
  • Did you perform a search about this problem? Here's the GitHub guide about searching.

Dependency Management

  • My project is using go modules.
  • My project is using vendoring.
  • My project is automatically downloading the latest version.
  • I am unsure of what my dependency management setup is.

Describe the bug

The generation step when calling make from https://cli.urfave.org/CONTRIBUTING/#development-workflow takes way too much detours.

Observed behavior

graph LR
make --> build.go --> gogen[go generate] --> cli.go --> urfave-cli-genflags/make --> urfave-cli-genflags --> goimports
Loading

Expected behavior

At least this.

graph LR
make --> build.go --> urfave-cli-genflags/make --> urfave-cli-genflags --> goimports
Loading

Additional context

Did I miss anything?

Want to fix this yourself?

Yup. If there is no some hidden magic behind.

Activity

  1. added
    kind/bug
    area/v2
    status/triage
    on Jul 23, 2023
  2. dearchap commented on Nov 24, 2023

    @dearchap
    Contributor

    @abitrolly Do you really want to optimize this since we are moving forward with v3 ? Does the analysis apply to v3 ?

  3. abitrolly commented on Nov 25, 2023

    @abitrolly
    ContributorAuthor

    @dearchap yes. That will make v2 maintenance easier. In case somebody needs to build it with modifications for debug.

  4. abitrolly commented on Nov 25, 2023

    @abitrolly
    ContributorAuthor

    v3 doesn't seem the be affected.

  5. removed
    status/triage
    on Apr 27, 2024
  6. changed the title [-]De-generate v2 build process[/-] [+]Remove `go generate` from v2 build process[/+] on May 2, 2024
  7. dolmen commented on May 31, 2024

    @dolmen
    Contributor

    Instead the build process should depend on go generate and not on make because that's the idiomatic way. See discussion in #1802 for opinions.

  8. abitrolly commented on Jun 1, 2024

    @abitrolly
    ContributorAuthor

    @dolmen "if all you have is a hammer, everything looks like a nail".

    I need a reference that calling make from Go code is the idiomatic Go. As shown by #1802 (comment) it is make calling Go, then Go calling make to call an app. Much more maintainable it to have make call the app.

  9. coilysiren commented on Sep 27, 2026

    @coilysiren
    Member

    I'm closing everything whose last update was in 2025 or earlier, to reduce maintainer burden while we coordinate a roll-over of who is doing the primary work day to day. You are highly encouraged to re-open this if it's still live for you!

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

    area/v2kind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions