Skip to content

Generator always fails to find config file on Windows #724

Open
@jakepetroules

Description

@jakepetroules

Description

This is due to the code in PluginUtils.swift which uses $0.path.lastComponent to get the filename of files in a FileList (which is SwiftPM package plugin API).

Unfortunately, path.lastComponent is broken on Windows, but there is a functional replacement url.lastComponent in manifest versions 6.0 or later.

When can swift-openapi-generator adopt 6.0 manifest version, or what can we do to resolve this on Windows?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugFeature doesn't work as expected.status/triageCollecting information required to triage the issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions