[GH-ISSUE #151] Failed to build from source using go get command #110

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

Originally created by @insidesmart on GitHub (Sep 17, 2019).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/151

github.com/go-shiori/shiori@a5b4f78f10/pkg/warc/internal/archiver/processor.go (L13)
github.com/go-shiori/shiori@a5b4f78f10/pkg/warc/internal/archiver/processor.go (L14)

Apparently

github.com/tdewolff/parse/v2/

doesnt exist and it causes build to fail.

Originally created by @insidesmart on GitHub (Sep 17, 2019). Original GitHub issue: https://github.com/go-shiori/shiori/issues/151 https://github.com/go-shiori/shiori/blob/a5b4f78f10a9638772724b0d3e2edeacd632c83c/pkg/warc/internal/archiver/processor.go#L13 https://github.com/go-shiori/shiori/blob/a5b4f78f10a9638772724b0d3e2edeacd632c83c/pkg/warc/internal/archiver/processor.go#L14 Apparently > github.com/tdewolff/parse/v2/ doesnt exist and it causes build to fail.
kerem closed this issue 2026-02-25 23:33:28 +03:00
Author
Owner

@RadhiFadlillah commented on GitHub (Sep 19, 2019):

That's weird, I've tested it just now and it works properly. My command is :

go get -u -v github.com/go-shiori/shiori

The v2 part in github.com/tdewolff/parse/v2/ is just how Go modules tells that the package is version 2. The vN part is exist if the package released with version 2 or higher as explained in wiki.

<!-- gh-comment-id:533046341 --> @RadhiFadlillah commented on GitHub (Sep 19, 2019): That's weird, I've tested it just now and it works properly. My command is : ``` go get -u -v github.com/go-shiori/shiori ``` The `v2` part in `github.com/tdewolff/parse/v2/` is just how Go modules tells that the package is version 2. The `vN` part is exist if the package released with version 2 or higher as explained in [wiki](https://github.com/golang/go/wiki/Modules#releasing-modules-v2-or-higher).
Author
Owner

@insidesmart commented on GitHub (Sep 19, 2019):

Strange. I see the following as the result when I deleted the old directory and tried installing via
go get -v github.com/go-shiori/shiori

....
github.com/tdewolff/parse (download)
package github.com/tdewolff/parse/v2/css: cannot find package "github.com/tdewolff/parse/v2/css" in any of:
	/usr/local/Cellar/go/1.10/libexec/src/github.com/tdewolff/parse/v2/css (from $GOROOT)
....

Also there is no folder called github.com under /usr/local/Cellar/go/1.10/libexec/src

Note: I am trying it in Mac OS

<!-- gh-comment-id:533070082 --> @insidesmart commented on GitHub (Sep 19, 2019): Strange. I see the following as the result when I deleted the old directory and tried installing via *go get -v github.com/go-shiori/shiori* ``` .... github.com/tdewolff/parse (download) package github.com/tdewolff/parse/v2/css: cannot find package "github.com/tdewolff/parse/v2/css" in any of: /usr/local/Cellar/go/1.10/libexec/src/github.com/tdewolff/parse/v2/css (from $GOROOT) .... ``` Also there is no folder called github.com under /usr/local/Cellar/go/1.10/libexec/src Note: I am trying it in **Mac OS**
Author
Owner

@RadhiFadlillah commented on GitHub (Sep 19, 2019):

Have you tried the -u flag ?

After you delete the old shiori folder and download it again using go get -v, it will redownload the Shiori's repository, but not the Shiori's dependencies. Hence why it can't find tdewolff/parse/v2/ package from $GOROOT.

By using -u flag, go get will also download the dependencies which hopefully fixed this issue.

<!-- gh-comment-id:533085535 --> @RadhiFadlillah commented on GitHub (Sep 19, 2019): Have you tried the `-u` flag ? After you delete the old `shiori` folder and download it again using `go get -v`, it will redownload the Shiori's repository, but not the Shiori's dependencies. Hence why it can't find `tdewolff/parse/v2/` package from `$GOROOT`. By using `-u` flag, `go get` will also download the dependencies which hopefully fixed this issue.
Author
Owner

@insidesmart commented on GitHub (Sep 22, 2019):

It worked after I upgraded go from 1.10 to 1.13. You could close this issue. Thanks.

<!-- gh-comment-id:533904153 --> @insidesmart commented on GitHub (Sep 22, 2019): It worked after I upgraded go from 1.10 to 1.13. You could close this issue. Thanks.
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#110
No description provided.