Skip to content

Commit bfe7e29

Browse files
committed
Another minor fix
1 parent f24d1fd commit bfe7e29

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

blobs.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,8 +785,9 @@ func GetAllAppCategories() []AppCategory {
785785
return categories
786786
}
787787

788+
// Simple check
788789
func AllowedImportPath() string {
789-
return "github.com/shuffle/shuffle-shared"
790+
return strings.Join([]string{"github.com", "shuffle", "shuffle-shared"}, "/")
790791
}
791792

792793
func GetWorkflowTest() []byte {

db-connector.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13414,6 +13414,10 @@ func checkImportPath() bool {
1341413414
}
1341513415

1341613416
for _, dep := range info.Deps {
13417+
if strings.Contains(dep.Path, "shuffle-shared") && dep.Path != AllowedImportPath() {
13418+
return false
13419+
}
13420+
1341713421
if dep.Path == AllowedImportPath() {
1341813422
return true
1341913423
}

0 commit comments

Comments
 (0)