swift-sh icon indicating copy to clipboard operation
swift-sh copied to clipboard

Can break with change of deps with same name

Open mxcl opened this issue 6 years ago • 0 comments

If you run this script:

import DeckOfPlayingCards  // apple/example-package-deckofplayingcards ~> 3.0.0
import PlayingCard
import Cycle  // @NSHipster == master

Then this:

import DeckOfPlayingCards // @NSHipster ~> 4.0.0
import PlayingCard
import Cycle // @NSHipster == bb11e28

It will fail because the Package.resolved contains the old package url, and doesn't update. Could be a bug in SwiftPM, but either way we should figure out what to do about a workaround.

mxcl avatar Jan 14 '19 21:01 mxcl