Skip to content

Commit b0d9411

Browse files
authored
Merge pull request #154 from OutSystems/RDODCP-236-RDODCP-229
RDODCP-236-RDODCP-229: Warn deprecation of --hostname and go version bump updates
2 parents 511766e + 9f3e5f2 commit b0d9411

4 files changed

Lines changed: 18 additions & 23 deletions

File tree

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,6 @@ If your organization uses a centralized log management product, see its document
200200
--header, Set a custom header in the form "HeaderName: HeaderContent".
201201
Use the Token displayed on ODC Portal in using token as HeaderName.
202202
203-
--hostname, Optionally set the 'Host' header (defaults to the host
204-
found in the server url).
205-
206203
--pid Generate pid file in current working directory
207204

208205
-v, Enable verbose logging

go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ require (
1212
github.com/gorilla/websocket v1.5.3 // indirect
1313
github.com/jpillora/backoff v1.0.0 // indirect
1414
github.com/jpillora/sizestr v1.0.0 // indirect
15-
golang.org/x/crypto v0.40.0 // indirect
16-
golang.org/x/net v0.42.0 // indirect
15+
golang.org/x/crypto v0.41.0 // indirect
16+
golang.org/x/net v0.43.0 // indirect
1717
golang.org/x/sync v0.16.0 // indirect
18-
golang.org/x/sys v0.34.0 // indirect
18+
golang.org/x/sys v0.35.0 // indirect
1919
)
2020

21-
replace github.com/jpillora/chisel => github.com/outsystems/chisel v1.10.1-os.6
21+
replace github.com/jpillora/chisel => github.com/outsystems/chisel v1.10.1-os.8
2222

23-
go 1.23.8
23+
go 1.24.6

go.sum

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ github.com/jpillora/sizestr v1.0.0 h1:4tr0FLxs1Mtq3TnsLDV+GYUWG7Q26a6s+tV5Zfw2yg
1616
github.com/jpillora/sizestr v1.0.0/go.mod h1:bUhLv4ctkknatr6gR42qPxirmd5+ds1u7mzD+MZ33f0=
1717
github.com/maxatome/go-testdeep v1.14.0 h1:rRlLv1+kI8eOI3OaBXZwb3O7xY3exRzdW5QyX48g9wI=
1818
github.com/maxatome/go-testdeep v1.14.0/go.mod h1:lPZc/HAcJMP92l7yI6TRz1aZN5URwUBUAfUNvrclaNM=
19-
github.com/outsystems/chisel v1.10.1-os.6 h1:1hLD63xTL9tlC8RNrp4SkII/ICd1cw1npOC18Im3Hsk=
20-
github.com/outsystems/chisel v1.10.1-os.6/go.mod h1:s8pC08aT0NDYXFNWaid5t1/SQGbqsT3FMgvU/ZS1U2E=
21-
golang.org/x/crypto v0.40.0 h1:r4x+VvoG5Fm+eJcxMaY8CQM7Lb0l1lsmjGBQ6s8BfKM=
22-
golang.org/x/crypto v0.40.0/go.mod h1:Qr1vMER5WyS2dfPHAlsOj01wgLbsyWtFn/aY+5+ZdxY=
23-
golang.org/x/net v0.42.0 h1:jzkYrhi3YQWD6MLBJcsklgQsoAcw89EcZbJw8Z614hs=
24-
golang.org/x/net v0.42.0/go.mod h1:FF1RA5d3u7nAYA4z2TkclSCKh68eSXtiFwcWQpPXdt8=
19+
github.com/outsystems/chisel v1.10.1-os.8 h1:49AGDE3ZIdBoBsKx2rHBZLwj5Tslpw3awfupsZr3zPo=
20+
github.com/outsystems/chisel v1.10.1-os.8/go.mod h1:LGo6iEF93bXsh81iLbM6sdHSX93JPIgr0XXvHR2ApLE=
21+
golang.org/x/crypto v0.41.0 h1:WKYxWedPGCTVVl5+WHSSrOBT0O8lx32+zxmHxijgXp4=
22+
golang.org/x/crypto v0.41.0/go.mod h1:pO5AFd7FA68rFak7rOAGVuygIISepHftHnr8dr6+sUc=
23+
golang.org/x/net v0.43.0 h1:lat02VYK2j4aLzMzecihNvTlJNQUq316m2Mr9rnM6YE=
24+
golang.org/x/net v0.43.0/go.mod h1:vhO1fvI4dGsIjh73sWfUVjj3N7CA9WkKJNQm2svM6Jg=
2525
golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw=
2626
golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
27-
golang.org/x/sys v0.34.0 h1:H5Y5sJ2L2JRdyv7ROF1he/lPdvFsd0mJHFw2ThKHxLA=
28-
golang.org/x/sys v0.34.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
29-
golang.org/x/term v0.33.0 h1:NuFncQrRcaRvVmgRkvM3j/F00gWIAlcmlB8ACEKmGIg=
30-
golang.org/x/term v0.33.0/go.mod h1:s18+ql9tYWp1IfpV9DmCtQDDSRBUjKaw9M1eAv5UeF0=
27+
golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI=
28+
golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
29+
golang.org/x/term v0.34.0 h1:O/2T7POpk0ZZ7MAzMeWFSg6S5IpWd/RXDlM9hgM3DR4=
30+
golang.org/x/term v0.34.0/go.mod h1:5jC53AEywhIVebHgPVeg0mj8OD3VO9OzclacVrqpaAw=
3131
golang.org/x/time v0.6.0 h1:eTDhh4ZXt5Qf0augr54TN6suAUudPcawVZeIAPU7D4U=
3232
golang.org/x/time v0.6.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=

main.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,6 @@ var clientHelp = `
104104
--header, Set a custom header in the form "HeaderName: HeaderContent".
105105
Use the Token displayed on ODC Portal in using token as HeaderName.
106106
107-
--hostname, Optionally set the 'Host' header (defaults to the host
108-
found in the server url).
109-
110107
--pid Generate pid file in current working directory
111108
112109
-v, Enable verbose logging
@@ -130,7 +127,7 @@ func client(args []string) {
130127
flags.DurationVar(&config.MaxRetryInterval, "max-retry-interval", 0, "")
131128
flags.StringVar(&config.Proxy, "proxy", "", "")
132129
flags.Var(&headerFlags{config.Headers}, "header", "")
133-
hostname := flags.String("hostname", "", "")
130+
hostname := flags.String("hostname", "", "Deprecated, will be ignored")
134131
pid := flags.Bool("pid", false, "")
135132
verbose := flags.Bool("v", false, "")
136133
flags.Usage = func() {
@@ -169,7 +166,8 @@ func client(args []string) {
169166
}
170167
//move hostname onto headers
171168
if *hostname != "" {
172-
config.Headers.Set("Host", *hostname)
169+
log.Printf("[WARN] The --hostname flag will be removed in a future release. Please consider removing it to avoid breaking changes.\n" +
170+
"Please specify the correct server URL directly instead.\n")
173171
}
174172
//ready
175173
c, err := chclient.NewClient(&config)

0 commit comments

Comments
 (0)