#renaming/deprecating enum types
1 messages · Page 1 of 1 (latest)
I thought about simply having the new one registered as:
FileTypes.Register("FILE_TYPE_REGULAR_TYPE", ...)
which will then create dagger.FileTypeFileTypeRegularType and dagger.FileTypeRegularType, which seems wrong.
e.g. here's the current duplicate declaration I'm dealing with:
# main/internal/dagger
internal/dagger/dagger.gen.go:13404:2: RegularType redeclared in this block
internal/dagger/dagger.gen.go:13327:2: other declaration of RegularType
Disclaimer: I don't know what i'm talking about
Not sure what the logic currently is for running old dagger Go clients with newer engines, but that definitely should not break since it's just GraphQL.
Correct me if i'm wrong but i think you're trying to address the following: old dagger Go clients that upgrade to newer dagger clients would break their code which would be annoying.
Could ExistsType.Alias("OLD_REGULAR_TYPE", "REGULAR_TYPE") work ?