#Overview
I had seen the following:
so I tried to run the $ swift build --fetch
command.
- The first
$ swift build --fetch
has succeeded. - The second
$ swift build --fetch
has failed without running$ swift build --clean=dist
.
- Am I using it the wrong way?
- By any chance, hasn't
$ swift build --fetch
supported in these situation yet?
- OS X 10.11.4
- swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a
import PackageDescription
let package = Package(
name: "MyProject",
dependencies: [
.Package(url: "../Pokemon", versions: Version(1,0,0)..<Version(2,0,0)),
]
)
The lasted tag of Pokemon
is 1.7.0
.
- Run
$ swift build --clean=dist
. - Run
$ swift build --fetch
, thenPokemon
is updated to1.7.0
. - Run
$ git tag 1.8.0
againstPokemon
, then the lasted tag ofPokemon
is1.8.0
. - Run
$ swift build --fetch
, thenPokemon
is not updated. - Run
$ swift build --clean=dist
. - Run
$ swift build --fetch
, thenPokemon
is updated to1.8.0
.
I expected Pokemon
had updated to 1.8.0
with the 4th operation.