Skip to content

Decide on action/feature naming convention #5

@nathaniel-brough

Description

@nathaniel-brough

By moving action/feature configs into the build files we create a new problem when it comes to naming schemas for toolchain configuration. In particular how to we map, target names e.g.

# file: //foo:BUILD
cc_feature(
  name = "foo",
  #...
)
# file: //conflicting_foo:BUILD
cc_feature(
  name = "foo",
  #...
)

Here we have two features in different directories, but with the same name. If we where to include both in our toolchain we may end up with some unexpected behaviour if the target name directly maps to the action/feature name.

Potential solutions

  1. We use the fully qualified label in the action name this would disambiguate between features with the same name but in different directories
  2. We check if there are duplicate named features in the resulting toolchain and raise an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🔖 Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions