feat: polish workspace transfers and verify Craft server file workflows
This commit is contained in:
1 parent
7fd7ae6733
commit
c209f1effc
49 files changed
+1459
-670
No files matched your search
@@ -41,3 +41,15 @@ func containsExtension(list []string, extension string) bool {
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Known web builds that could not complete server file round trips.
|
||||
// Keep installation available so users can update them when upstream fixes land.
|
||||
func CompatibilityIssue(id, build string) string {
|
||||
if id == "soundcraft" && build == "v0.11.0-ca335c74d511" {
|
||||
return "demoOnly"
|
||||
}
|
||||
if (id == "figcraft" && build == "v0.9.0-ab8d50277339") || (id == "lightcraft" && build == "v0.11.0-7cc682e1d543") {
|
||||
return "serverSave"
|
||||
}
|
||||
return ""
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package addons
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestKnownDemoBuildIsIncompatible(t *testing.T) {
|
||||
if CompatibilityIssue("soundcraft", "v0.11.0-ca335c74d511") != "demoOnly" {
|
||||
t.Fatal("demo must not be offered as a server editor")
|
||||
}
|
||||
if CompatibilityIssue("wordcraft", "v0.11.0-ca335c74d511") != "" {
|
||||
t.Fatal("unrelated editor blocked")
|
||||
}
|
||||
if CompatibilityIssue("soundcraft", "test-123") != "" {
|
||||
t.Fatal("unrelated build blocked")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user