Skip to content

Being able to mark generated files with go:build tags #2012

Closed

Description

@eladitzhakian

What do you want to change?

It could be useful to be able to emit // go:build some-tag into the golang generated files

This way I can, for example, exclude them when running coverage tests 😇

What database engines need to be changed?

No response

What programming language backends need to be changed?

Go

Activity

  1. added and removed
    triageNew issues that hasn't been reviewed
    on Jun 7, 2023
  2. andrewmbenton commented on Jun 7, 2023

    @andrewmbenton
    Collaborator

    This seems like a pretty easy option to add to the sqlc v2 gen/go config, if someone wants to take a crack at it.

  3. Hyuga-Tsukui commented on Oct 5, 2023

    @Hyuga-Tsukui
    Contributor

    @kyleconroy

    I find this feature very useful, and I'd like to try contributing. Would that be okay?

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions