File tree 3 files changed +8
-5
lines changed
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
module github.com/k1LoW/runn
2
2
3
- go 1.23.6
3
+ go 1.23.7
4
4
5
5
require (
6
6
github.com/Songmu/axslogparser v1.4.0
@@ -72,7 +72,7 @@ require (
72
72
github.com/tenntenn/golden v0.5.4
73
73
github.com/xlab/treeprint v1.2.0
74
74
github.com/xo/dburl v0.23.3
75
- golang.org/x/crypto v0.34 .0
75
+ golang.org/x/crypto v0.35 .0
76
76
golang.org/x/mod v0.23.0
77
77
golang.org/x/sync v0.11.0
78
78
google.golang.org/grpc v1.70.0
Original file line number Diff line number Diff line change @@ -1301,8 +1301,8 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPh
1301
1301
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b /go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4 =
1302
1302
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 /go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc =
1303
1303
golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa /go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc =
1304
- golang.org/x/crypto v0.34 .0 h1:+/C6tk6rf/+t5DhUketUbD1aNGqiSX3j15Z6xuIDlBA =
1305
- golang.org/x/crypto v0.34 .0 /go.mod h1:dy7dXNW32cAb/6/PRuTNsix8T+vJAqvuIy5Bli/x0YQ =
1304
+ golang.org/x/crypto v0.35 .0 h1:b15kiHdrGCHrP6LvwaQ3c03kgNhhiMgvlhxHQhmg2Xs =
1305
+ golang.org/x/crypto v0.35 .0 /go.mod h1:dy7dXNW32cAb/6/PRuTNsix8T+vJAqvuIy5Bli/x0YQ =
1306
1306
golang.org/x/exp v0.0.0-20180321215751-8460e604b9de /go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA =
1307
1307
golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f /go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA =
1308
1308
golang.org/x/exp v0.0.0-20190121172915-509febef88a4 /go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA =
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import (
10
10
11
11
"github.com/rs/xid"
12
12
"github.com/samber/lo"
13
+ "github.com/samber/lo/mutable"
13
14
)
14
15
15
16
// generateIDsUsingPath generates IDs using path of runbooks.
@@ -96,5 +97,7 @@ func generateRandomID() (string, error) {
96
97
}
97
98
98
99
func reversePath (p string ) []string {
99
- return lo .Reverse (strings .Split (filepath .ToSlash (p ), "/" ))
100
+ splitted := strings .Split (filepath .ToSlash (p ), "/" )
101
+ mutable .Reverse (splitted )
102
+ return splitted
100
103
}
You can’t perform that action at this time.
0 commit comments