Skip to content

Commit

Permalink
Add sw6.6 constraint compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
wannevancamp authored and shyim committed Dec 8, 2023
1 parent f02c2ed commit 9fbbbd5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion extension/asset_platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,16 @@ func setupShopwareInTemp(ctx context.Context, shopwareVersionConstraint *version
cloneBranch := "6.4"

shopware65Constraint, _ := version.NewConstraint("~6.5.0")
shopware66Constraint, _ := version.NewConstraint("~6.6.0")

if shopware65Constraint.Check(version.Must(version.NewVersion(minVersion))) {
cloneBranch = "trunk"
cloneBranch = "6.5"
}

if shopware66Constraint.Check(version.Must(version.NewVersion(minVersion))) {
cloneBranch = "trunk"

Check failure on line 421 in extension/asset_platform.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofmt`-ed with `-s` (gofmt)
}

logging.FromContext(ctx).Infof("Cloning shopware with branch: %s into %s", cloneBranch, dir)

gitCheckoutCmd := exec.Command("git", "clone", "https://github.com/shopware/platform.git", "--depth=1", "-b", cloneBranch, dir)
Expand Down

0 comments on commit 9fbbbd5

Please sign in to comment.