Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error shfmt not found

When i open visual studio code editor in ubuntu 16.04 it shown below error at the top.

shfmt not found! run go get -u github.com/mvdan/sh/cmd/shfmt to install

However i tried to find out solution from his official website but didn't get any solution.

After installing golang-go getting below error.

#go get -u github.com/mvdan/sh/cmd/shfmt

Output:

go/src/github.com/mvdan/sh/cmd/shfmt/main.go:156: undefined: io.SeekStart
like image 650
blaCkninJa Avatar asked May 31 '26 10:05

blaCkninJa


2 Answers

shfmt is also available on snap store:

snap install shfmt
like image 138
Panagiotis Simakis Avatar answered Jun 03 '26 23:06

Panagiotis Simakis


You will have to install go first. Once you do then you can run

go get -u github.com/mvdan/sh/cmd/shfmt

like image 27
asembereng Avatar answered Jun 04 '26 01:06

asembereng