compose-go icon indicating copy to clipboard operation
compose-go copied to clipboard

ProjectName normalization

Open fcx-mrogez opened this issue 1 month ago • 2 comments

I wanted to use project name with dots "." in it ("my-compose-app-1.2.3"), but the ProjectName Normalization procedure doesn't allow dots and remove them, which is inconvenient: https://github.com/compose-spec/compose-go/blob/dbfe61974b3f20155aaf2907d95251972b097845/loader/loader.go#L700

I don't see in the specification such restriction about dots in the name: https://github.com/compose-spec/compose-spec/blob/main/04-version-and-name.md#name-top-level-element

I know I can Skip normalization, but doing so will also remove the creation of default network which I rely on.

So are dots acceptable in the name ? Should the specification be modified to include what are acceptable names ?

fcx-mrogez avatar Nov 25 '25 14:11 fcx-mrogez

Normalization is required as project name is used as prefix for docker resources, so those restrictions. . anyway should not be an issue, need to check if there's any other reason this is rejected

ndeloof avatar Nov 27 '25 19:11 ndeloof

Ok good to know. Even better if "." can be accepted :)

fcx-mrogez avatar Nov 28 '25 08:11 fcx-mrogez