Skip to content

swiftly list-available sometimes shows wrong version in use #291

Closed
@schafdog

Description

@schafdog

After installing (swiftly install 6.1.0 and swiftly use 6.1.0), swiftly still showed 6.0.3 as installed, in use.

Could reproduced afterward. Swiftly never change which was in use, but was correct on the command line. So it's mostly an cosmetic issue


root@nuc:~# swiftly use 6.0.3
The file `file:///etc/.swift-version` has been set to `Swift 6.0.3` (was 6.1.0)
root@nuc:/etc/fail2ban# swiftly list-available
Available release toolchains
----------------------------
Swift 6.1.0 (installed)
Swift 6.0.3 (installed, in use)
Swift 6.0.2
Swift 6.0.1
Swift 6.0.0
Swift 5.10.1
root@nuc:~# swiftly use 6.1.0
The file `file:///etc/.swift-version` has been set to `Swift 6.1.0` (was 6.0.3)
root@nuc:/etc/fail2ban# 
root@nuc:/etc/fail2ban# 
root@nuc:/etc/fail2ban# 
root@nuc:/etc/fail2ban# swiftly list-available
Available release toolchains
----------------------------
Swift 6.1.0 (installed)
Swift 6.0.3 (installed, in use)
Swift 6.0.2
Swift 6.0.1
Swift 6.0.0
Swift 5.10.1
root@nuc:~# swift --version
Swift version 6.1 (swift-6.1-RELEASE)
Target: x86_64-unknown-linux-gnu

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