Skip to content

Cannot run swift-format from root (/) #811

@bnbarham

Description

@bnbarham

Running swift-format from the root directory results in the first couple characters being dropped from path, eg. on macOS:

swift-format lint --recursive "/tmp/packagetest"
<unknown>: error: Unable to open rivate/tmp/packagetest/Package.swift: file is not readable or does not exist

rdar://134768169

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions