Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double installation Swift 6 #3376

Closed
ivan-gaydamakin opened this issue Dec 5, 2024 · 4 comments
Closed

Double installation Swift 6 #3376

ivan-gaydamakin opened this issue Dec 5, 2024 · 4 comments
Labels

Comments

@ivan-gaydamakin
Copy link

ivan-gaydamakin commented Dec 5, 2024

Describe the bug
After upgrade to the last version of mise (v2024.12.0), it tried to install swif 6, but it's already installed by Xcode 16.

On version export v2024.11.29

To Reproduce
Upgrade to last mise version (v2024.12.0)
Create in folder file: .mise.toml with content:

[tools]
swiftlint = '0.55.1'
swiftformat = '0.54.3'
swiftgen = '6.6.3'
tuist = '4.33.0'

and use mise install.

Expected behavior
Do not install swift 6 if it's already installed by Xcode 16.

mise doctor output

version: 2024.12.0 macos-arm64 (20525d2 2024-12-04)
activated: yes
shims_on_path: no

build_info:
  Target: aarch64-apple-darwin
  Features: DEFAULT, NATIVE_TLS, OPENSSL
  Built: Wed, 4 Dec 2024 21:34:34 +0000
  Rust Version: rustc 1.82.0 (f6e511eec 2024-10-15)
  Profile: release

shell:
  /bin/zsh
  zsh 5.9 (x86_64-apple-darwin23.0)

dirs:
  cache: ~/Library/Caches/mise
  config: ~/.config/mise
  data: ~/.local/share/mise
  shims: ~/.local/share/mise/shims
  state: ~/.local/state/mise

config_files:
  ~/Workspace/app-ios/.swift-version
  ~/Workspace/app-ios/.mise.toml

backends:
  aqua
  asdf
  cargo
  core
  gem
  go
  npm
  pipx
  spm
  ubi
  vfox

plugins:
  swiftformat  https://github.com/younke/asdf-swiftformat.git#ab1f91f
  swiftgen     https://github.com/younke/asdf-swiftgen.git#072ce84
  swiftlint    https://github.com/klundberg/asdf-swiftlint.git#447f94c
  tuist        https://github.com/asdf-community/asdf-tuist.git#44c87b2

toolset:
  asdf:swiftformat@0.54.3
  asdf:swiftgen@6.6.3
  asdf:swiftlint@0.55.1
  asdf:tuist@4.33.0
  core:swift@6.0        (missing)

env_vars:
  MISE_SHELL=zsh

settings:

No problems found
@ivan-gaydamakin
Copy link
Author

I guess that happened by that PR:
#3271

@jdx
Copy link
Owner

jdx commented Dec 5, 2024

toolset:
  asdf:swiftformat@0.54.3
  asdf:swiftgen@6.6.3
  asdf:swiftlint@0.55.1
  asdf:tuist@4.33.0
  core:swift@6.0        (missing)

you've told mise to install swift@6.0

@ivan-gaydamakin
Copy link
Author

ivan-gaydamakin commented Dec 6, 2024

I didn't do that, only if some dependencies do that.

~/Workspace/app-ios/.mise.toml

[tools]
swiftlint = '0.55.1'
swiftformat = '0.54.3'
swiftgen = '6.6.3'
tuist = '4.33.0'

~/Workspace/app-ios/.swift-version:

6.0

hm, I guess it happened because I have that file. We used .swift-version for swiftormat, can I ignore that file for mise?

@jdx
Copy link
Owner

jdx commented Dec 6, 2024

@jdx jdx closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants