You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ jw-swift-latest swift -version
Apple Swift version 5.2-dev (LLVM 011be41f7b, Swift 13487edd09)
Target: x86_64-apple-darwin19.4.0
Additional Detail from JIRA
Votes
1
Component/s
Source Tooling
Labels
Bug
Assignee
None
Priority
Medium
md5: aac5b041f0a03897e47b0fa2b5f78011
Issue Description:
Unfortunately, swift-api-digester doesn't consider adding an enum case as API breaking but it very much is (unless you run in the "library evolution" language dialect which no SwiftPM packages are using):
Consider this package:
$ git show 1.0.0:Sources/mypkg/mypkg.swift
struct mypkg {
var text = "Hello, World!"
}
public enum Foo {
case one
}
$ git show master:Sources/mypkg/mypkg.swift
struct mypkg {
var text = "Hello, World!"
}
public enum Foo {
case one
case two
}
so in 1.0.0 we only have case one and on master we additionally have two. But api-digester claims:
Attachment: Download
Environment
Additional Detail from JIRA
md5: aac5b041f0a03897e47b0fa2b5f78011
Issue Description:
Unfortunately,
swift-api-digester
doesn't consider adding an enum case as API breaking but it very much is (unless you run in the "library evolution" language dialect which no SwiftPM packages are using):Consider this package:
so in 1.0.0 we only have
case one
and onmaster
we additionally havetwo
. But api-digester claims:If I manually diff the json files, I can see that there's actually a difference
please find the package attached too
The text was updated successfully, but these errors were encountered: