Skip to content

Commit e1e096e

Browse files
committed
Hotfix shared global variables
1 parent c876e8c commit e1e096e

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

cmd/upsun_clone.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import (
66
flag "github.com/spf13/pflag"
77
app "github.com/upsun/clonsun"
88
logic "github.com/upsun/clonsun/internal/logic"
9+
libconv "github.com/upsun/convsun"
10+
lib "github.com/upsun/lib-sun"
911
entity "github.com/upsun/lib-sun/entity"
1012
utils "github.com/upsun/lib-sun/utility"
1113
)
@@ -141,6 +143,17 @@ func main() {
141143
//TODO utils.HasSufficientRights(projectTo.Provider)
142144
//TODO utils.HasSufficientRights(projectFrom.Provider)
143145

146+
//TODO(Mick) Hack (replace by context object)
147+
lib.VERSION = app.VERSION
148+
lib.Args = app.Args
149+
lib.ArgsC = app.ArgsC
150+
lib.ArgsM = app.ArgsM
151+
lib.ArgsS = app.ArgsS
152+
libconv.Args = app.Args
153+
libconv.ArgsC = app.ArgsC
154+
libconv.ArgsM = app.ArgsM
155+
libconv.ArgsS = app.ArgsS
156+
144157
// Process
145158
logic.Clone(projectFrom, projectTo)
146159
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.22.6
55
require (
66
github.com/spf13/pflag v1.0.5
77
github.com/upsun/convsun v0.3.2
8-
github.com/upsun/lib-sun v0.3.4
8+
github.com/upsun/lib-sun v0.3.5
99
)
1010

1111
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT
1818
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
1919
github.com/upsun/convsun v0.3.2 h1:e25DpkIkg8JeYAoIw3xpgnLEDH9UV6VzbKENXaXdHL4=
2020
github.com/upsun/convsun v0.3.2/go.mod h1:r1xF3CcYqWXchsYaPRYuvqlf2H24/Miw+cLng3vUiuM=
21-
github.com/upsun/lib-sun v0.3.4 h1:ANSleT49LOUHBO/gdKLzXTquC583K3h6IfKfUcQ2uH8=
22-
github.com/upsun/lib-sun v0.3.4/go.mod h1:8AtRNv0L+c9qCS/maO/OVFIn2VDi89LTkWwpB7YKTDE=
21+
github.com/upsun/lib-sun v0.3.5 h1:Np4d2pPhNy6pFwNfoA0cy7b4UyjfqCKAh+DybUSSAXk=
22+
github.com/upsun/lib-sun v0.3.5/go.mod h1:8AtRNv0L+c9qCS/maO/OVFIn2VDi89LTkWwpB7YKTDE=
2323
golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4=
2424
golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
2525
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=

0 commit comments

Comments
 (0)