Skip to content

✨ Do not allow creating modules with reserved names #7373

Closed

Description

@sagikazarmark

What are you trying to do?

dagger init --sdk go --name module --source .

Why is this important to you?

Go complains about the name Module being redeclared.

How are you currently working around this?

I don't use that name, but I'm guessing other names might be affected too.

Activity

  1. sagikazarmark commented on May 14, 2024

    @sagikazarmark
    ContributorAuthor

    From what I can tell, those are rather about finding a solution to resolve name conflicts. This is a proposal for the CLI (a low-hanging fruit if you will) to disallow generating modules like that in the first place.

  2. added
    area/cli
    on Jul 5, 2024
  3. jedevc commented on Jul 30, 2025

    @jedevc
    Contributor

    Ah, this is a very weird real problem, similarly related:

    $ dagger -m ./version query <cmd/dagger/typedefs.graphql > out.json
    

    In the resulting out.json, we can see that Query.version is updated - there's already a Query.version method in the core API.

  4. locked and limited conversation to collaborators on Mar 24, 2026
  5. converted this issue into a discussion #12356 on Mar 24, 2026
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/clikind/external-helpkind/user-request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions