Skip to content

Path:lastComponent in pluginAPI returns the fullpath on Windows #8554

Open
@daveinglis

Description

@daveinglis

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

PackageCommnadTests:testPluginAPIs fails on Windows do to Path:lastComponent not returning just the last path segment

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

Once the CommnadTests are enabled on Windows running removing the skip for windows and running swift test --filter CommandsTests.PackageCommandNativeTests/testPluginAPIs will show the failure

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version ; uname -a)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions