thank you go for making patches extremely simple
Some checks are pending
ci/woodpecker/push/update Pipeline was successful
ci/woodpecker/pr/update Pipeline was successful
Hydra woodpecker-server Hydra build #13338 of nix-packages:aarch64-linux-master-pr9:woodpecker-server
Hydra emoji-caro Hydra build #13333 of nix-packages:aarch64-linux-master-pr9:emoji-caro
Some checks are pending
ci/woodpecker/push/update Pipeline was successful
ci/woodpecker/pr/update Pipeline was successful
Hydra woodpecker-server Hydra build #13338 of nix-packages:aarch64-linux-master-pr9:woodpecker-server
Hydra emoji-caro Hydra build #13333 of nix-packages:aarch64-linux-master-pr9:emoji-caro
This commit is contained in:
parent
a92566f8ba
commit
8c8a48f206
1 changed files with 8 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
diff --git a/pipeline/frontend/yaml/matrix/matrix.go b/pipeline/frontend/yaml/matrix/matrix.go
|
diff --git a/pipeline/frontend/yaml/matrix/matrix.go b/pipeline/frontend/yaml/matrix/matrix.go
|
||||||
index da5e9f24..bebad5f0 100644
|
index da5e9f24..c3fe9896 100644
|
||||||
--- a/pipeline/frontend/yaml/matrix/matrix.go
|
--- a/pipeline/frontend/yaml/matrix/matrix.go
|
||||||
+++ b/pipeline/frontend/yaml/matrix/matrix.go
|
+++ b/pipeline/frontend/yaml/matrix/matrix.go
|
||||||
@@ -22,11 +22,6 @@ import (
|
@@ -22,11 +22,6 @@ import (
|
||||||
|
@ -14,7 +14,13 @@ index da5e9f24..bebad5f0 100644
|
||||||
// Matrix represents the pipeline matrix.
|
// Matrix represents the pipeline matrix.
|
||||||
type Matrix map[string][]string
|
type Matrix map[string][]string
|
||||||
|
|
||||||
@@ -92,20 +87,10 @@ func calc(matrix Matrix) []Axis {
|
@@ -87,25 +82,15 @@ func calc(matrix Matrix) []Axis {
|
||||||
|
for p := 0; p < perm; p++ {
|
||||||
|
axis := map[string]string{}
|
||||||
|
decr := perm
|
||||||
|
- for i, tag := range tags {
|
||||||
|
+ for _, tag := range tags {
|
||||||
|
elems := matrix[tag]
|
||||||
decr = decr / len(elems)
|
decr = decr / len(elems)
|
||||||
elem := p / decr % len(elems)
|
elem := p / decr % len(elems)
|
||||||
axis[tag] = elems[elem]
|
axis[tag] = elems[elem]
|
||||||
|
|
Reference in a new issue