asciimoo / wuzz

Interactive cli tool for HTTP inspection
GNU Affero General Public License v3.0
10.54k stars 412 forks source link

undefined: strings.ReplaceAll for go 1.10.x #132

Open gururajrkatti opened 3 years ago

gururajrkatti commented 3 years ago

I am running the build and test as a part of the Ubuntu distribution for ppc64le. This helps us simplify testing later when distributions are re-building and re-releasing.

During the build and test, I found that build for go 1.10.x is failing. This is failing for intel (amd64) as well.

travis_install_go_dependencies 1.10.x -v is failing for github.com/alessio/shellescape with the error "../../alessio/shellescape/shellescape.go:36:16: undefined: strings.ReplaceAll" I think this function is deprecated and we may have to move to next version of go ?

Below is the detailed log.

github.com/alessio/shellescape
github.com/BurntSushi/toml
# github.com/alessio/shellescape
../../alessio/shellescape/shellescape.go:36:16: undefined: strings.ReplaceAll
github.com/mitchellh/go-homedir
golang.org/x/net/html/atom
golang.org/x/net/html
github.com/asciimoo/wuzz/config
github.com/fatih/color/vendor/golang.org/x/sys/unix
github.com/andybalholm/cascadia
github.com/PuerkitoBio/goquery
github.com/fatih/color/vendor/github.com/mattn/go-isatty
github.com/fatih/color/vendor/github.com/mattn/go-colorable
github.com/fatih/color
github.com/tidwall/match
github.com/nwidger/jsoncolor
github.com/tidwall/pretty
github.com/tidwall/gjson
github.com/x86kernel/htmlcolor
github.com/mattn/go-runewidth
github.com/nsf/termbox-go
github.com/asciimoo/wuzz/formatter
golang.org/x/net/internal/socks
github.com/jroimartin/gocui
golang.org/x/net/proxy
github.com/gururajrkatti/wuzz/config
github.com/gururajrkatti/wuzz/formatter
The command "eval go get -v -t ./... " failed. Retrying, 2 of 3.
github.com/alessio/shellescape
# github.com/alessio/shellescape
../../alessio/shellescape/shellescape.go:36:16: undefined: strings.ReplaceAll
The command "eval go get -v -t ./... " failed. Retrying, 3 of 3.
github.com/alessio/shellescape
# github.com/alessio/shellescape
../../alessio/shellescape/shellescape.go:36:16: undefined: strings.ReplaceAll
The command "eval go get -v -t ./... " failed 3 times.
The command "go get -v -t ./..." failed and exited with 2 during .
Your build has been stopped.

Build logs present at https://travis-ci.com/github/gururajrkatti/wuzz/jobs/445547465 for your reference.

Could you pl. check on the same.

gururajrkatti commented 3 years ago

Hi, just wanted to check if you got a chance to look into this

asciimoo commented 3 years ago

This is definitely a bug. Could you submit a fix?

gururajrkatti commented 3 years ago

Thanks. I submitted PR https://github.com/asciimoo/wuzz/pull/135