[GH-ISSUE #268] Build/Install instructions cleanup #194

Closed
opened 2026-02-25 23:33:40 +03:00 by kerem · 5 comments
Owner

Originally created by @clach04 on GitHub (Aug 16, 2020).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/268

I'd like to propose moving install instructions into the readme (from the wiki https://github.com/go-shiori/shiori/wiki/Installation). Any concerns with that? I can update the wiki instead but that won't go through a review (PR) process. This applies to both manual and Docker build

#264 shows an alternative technique.

From my notes https://github.com/clach04/shiori

Shiori can be built but not using the original wiki instructions to use go get ..., with go1.13.11 under Raspbian GNU/Linux 9 (stretch) get:

../golang/src/github.com/go-shiori/shiori/internal/cmd/root.go:93:32: too many arguments in call to gap.NewScope
        have (gap.ScopeType, string, string)
        want (gap.ScopeType, string)
../golang/src/github.com/go-shiori/shiori/internal/cmd/root.go:94:27: userScope.DataDir undefined (type *gap.Scope has no field or method DataDir)

Original wiki documents minimum version of Go 1.12. So unclear why go get ... fails, the alternative is to build from source (manually or with Docker).

See Dockerfile for deployment with Docker, image uses Alpine (which requires Alpine Go to build, Debian builds of Shiori do not work in Alpine, will see not found errors).

To build issue:

git clone https://github.com/go-shiori/shiori.git
cd shiori
go build  # NOTE this assumes GOPATH is set and go in the path, manual install of go described below

Quick setup of Go:

wget https://dl.google.com/go/go1.13.11.linux-armv6l.tar.gz
tar -ztvf go1.13.11.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf  go1.13.11.linux-armv6l.tar.gz
sudo apt-get remove golang-1.7
sudo apt autoremove

Then in .profile (etc.)

PATH=$PATH:/usr/local/go/bin
GOPATH=$HOME/golang
if [ ! -d "$GOPATH/src" ] ; then
    mkdir -p $GOPATH/src
fi

Later versions should work, https://github.com/go-shiori/shiori/issues/243#issuecomment-624308622 indicates go1.14.1 works

Originally created by @clach04 on GitHub (Aug 16, 2020). Original GitHub issue: https://github.com/go-shiori/shiori/issues/268 I'd like to propose moving install instructions into the readme (from the wiki https://github.com/go-shiori/shiori/wiki/Installation). Any concerns with that? I can update the wiki instead but that won't go through a review (PR) process. This applies to both manual and Docker build #264 shows an alternative technique. From my notes https://github.com/clach04/shiori Shiori can be built but not using the original wiki instructions to use `go get ...`, with go1.13.11 under Raspbian GNU/Linux 9 (stretch) get: ../golang/src/github.com/go-shiori/shiori/internal/cmd/root.go:93:32: too many arguments in call to gap.NewScope have (gap.ScopeType, string, string) want (gap.ScopeType, string) ../golang/src/github.com/go-shiori/shiori/internal/cmd/root.go:94:27: userScope.DataDir undefined (type *gap.Scope has no field or method DataDir) Original wiki documents minimum version of Go 1.12. So unclear why `go get ...` fails, the alternative is to build from source (manually or with Docker). See Dockerfile for deployment with Docker, image uses Alpine (which requires Alpine Go to build, Debian builds of Shiori do not work in Alpine, will see `not found` errors). To build issue: git clone https://github.com/go-shiori/shiori.git cd shiori go build # NOTE this assumes GOPATH is set and go in the path, manual install of go described below Quick setup of Go: wget https://dl.google.com/go/go1.13.11.linux-armv6l.tar.gz tar -ztvf go1.13.11.linux-armv6l.tar.gz sudo tar -C /usr/local -xzf go1.13.11.linux-armv6l.tar.gz sudo apt-get remove golang-1.7 sudo apt autoremove Then in .profile (etc.) PATH=$PATH:/usr/local/go/bin GOPATH=$HOME/golang if [ ! -d "$GOPATH/src" ] ; then mkdir -p $GOPATH/src fi Later versions should work, https://github.com/go-shiori/shiori/issues/243#issuecomment-624308622 indicates go1.14.1 works
kerem closed this issue 2026-02-25 23:33:40 +03:00
Author
Owner

@deanishe commented on GitHub (Aug 20, 2020):

Thanks for helping out.

Any concerns with that? I can update the wiki instead but that won't go through a review (PR) process.

I think updating the wiki is fine for now. Changes can always be rolled back. I'll probably move most of the wiki contents to the docs/ folder at some point.

Quick setup of Go

Please don't add instructions for installing Go. Perhaps add a link to Go's own docs? I'd prefer to keep the docs (and especially the questions people ask) Shiori-specific.

Original wiki documents minimum version of Go 1.12. So unclear why go get ... fails, the alternative is to build from source (manually or with Docker).

Go modules make go get fail or succeed depending on where you run the command from. From the error, it's downloading the wrong version of some dependency, so you likely need to use GO111MODULE=on go get ... to get it to work.

<!-- gh-comment-id:677782551 --> @deanishe commented on GitHub (Aug 20, 2020): Thanks for helping out. > Any concerns with that? I can update the wiki instead but that won't go through a review (PR) process. I think updating the wiki is fine for now. Changes can always be rolled back. I'll probably move most of the wiki contents to the docs/ folder at some point. > Quick setup of Go Please don't add instructions for installing Go. Perhaps add a link to Go's own docs? I'd prefer to keep the docs (and especially the questions people ask) Shiori-specific. > Original wiki documents minimum version of Go 1.12. So unclear why go get ... fails, the alternative is to build from source (manually or with Docker). Go modules make `go get` fail or succeed depending on where you run the command from. From the error, it's downloading the wrong version of some dependency, so you likely need to use `GO111MODULE=on go get ...` to get it to work.
Author
Owner

@constraintAutomaton commented on GitHub (Apr 22, 2021):

I'm still getting the error when I'm building using GO111MODULE=on go get -u -v github.com/go-shiori/shiori

internal/cmd/root.go:93:32: too many arguments in call to gap.NewScope
	have (gap.ScopeType, string, string)
	want (gap.ScopeType, string)
internal/cmd/root.go:94:27: userScope.DataDir undefined (type *gap.Scope has no field or method DataDir)
<!-- gh-comment-id:825271980 --> @constraintAutomaton commented on GitHub (Apr 22, 2021): I'm still getting the error when I'm building using `GO111MODULE=on go get -u -v github.com/go-shiori/shiori` ``` internal/cmd/root.go:93:32: too many arguments in call to gap.NewScope have (gap.ScopeType, string, string) want (gap.ScopeType, string) internal/cmd/root.go:94:27: userScope.DataDir undefined (type *gap.Scope has no field or method DataDir) ```
Author
Owner

@clach04 commented on GitHub (Apr 23, 2021):

@constraintAutomaton what version of go is the build failing with?

I've seen a number of build failures (on the SBCs I use) when the go version was below version go1.14.1 (EDIT, as per my original note, version 1.13.11 worked for me at one point, but I did not document the Shiori version that was true for!).

I just checked and https://github.com/go-shiori/shiori/wiki/Installation still mentions 1.12 so I'm about to go update that :)

<!-- gh-comment-id:825282950 --> @clach04 commented on GitHub (Apr 23, 2021): @constraintAutomaton what version of go is the build failing with? I've seen a number of build failures (on the SBCs I use) when the go version was below version `go1.14.1` (EDIT, as per my original note, version 1.13.11 worked for me at one point, but I did not document the Shiori version that was true for!). I just checked and https://github.com/go-shiori/shiori/wiki/Installation still mentions 1.12 so I'm about to go update that :)
Author
Owner

@constraintAutomaton commented on GitHub (Apr 25, 2021):

I'm using go version go1.13.8 linux/amd64. I finally used a release version of the software instead of cloning the master.

<!-- gh-comment-id:826354756 --> @constraintAutomaton commented on GitHub (Apr 25, 2021): I'm using `go version go1.13.8 linux/amd64`. I finally used a release version of the software instead of cloning the master.
Author
Owner

@fmartingr commented on GitHub (Feb 6, 2022):

Thanks for raising this, it's on my mind as well. I've opened https://github.com/go-shiori/shiori/discussions/336 to discuss moving documentation directly into the repository.

<!-- gh-comment-id:1030868591 --> @fmartingr commented on GitHub (Feb 6, 2022): Thanks for raising this, it's on my mind as well. I've opened https://github.com/go-shiori/shiori/discussions/336 to discuss moving documentation directly into the repository.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shiori#194
No description provided.