Skip to content

joinpath should not throw. period. #20912

Closed
@StefanKarpinski

Description

@StefanKarpinski

As observed in #20695, joinpath causes an error on Windows in situations where a git URL looks like a relative path with a drive specification – since the drives of the two arguments don't match, an error is thrown. That specific problem can be worked around, but the deeper problem is that joinpath throws in the first place. It's fundamentally just a string manipulation function and shouldn't throw errors. However, that leaves the question of what should happen when the second argument to joinpath is a relative with a drive that doesn't match that of the first argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingThis change will break codeerror handlingHandling of exceptions by Julia or the userfilesystemUnderlying file system and functions that use itgood first issueIndicates a good issue for first-time contributors to Juliahelp wantedIndicates that a maintainer wants help on an issue or pull request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions