Skip to content

Apollo 1.0.x generate multiple files with the same name in the same package #2645

Closed
@Dimillian

Description

@Dimillian

Here is our configuration with Apollo 1.0.3

let configuration = ApolloCodegenConfiguration(schemaName: "GQL",
                                               input: .init(schemaPath: urlToSchemaFile.absoluteString),
                                               output: .init(schemaTypes: .init(path: outputURL.absoluteString,
                                                                                moduleType: .other),
                                                             operations: .inSchemaModule))

I'm using other as moduleType and inSchemaModule because we're already having a package ready to accept the code generated by GraphQL. And we want all the GQL code to be within this package.
Using 0.5.X it was working fine, new codegen split the files using the same file name in different folders, this is not something that is supported in a Swift Package or even the targets in Xcode.
Xcode fail to compile it with those kind of errors

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions