kooky icon indicating copy to clipboard operation
kooky copied to clipboard

None of the Package Examples work with go mod tidy

Open drgrib opened this issue 2 years ago • 2 comments

Running go mod tidy for the first example, I get

go: finding module for package github.com/browserutils/kooky/browser/all
go: finding module for package github.com/browserutils/kooky
go: found github.com/browserutils/kooky in github.com/browserutils/kooky v0.2.0
go: test.test imports
        github.com/browserutils/kooky: github.com/browserutils/[email protected]: parsing go.mod:
        module declares its path as: github.com/zellyn/kooky
                but was required as: github.com/browserutils/kooky

For the second one, I get

go: finding module for package github.com/browserutils/kooky/browser/chrome
go: test.test imports
        github.com/browserutils/kooky/browser/chrome: module github.com/browserutils/kooky@latest found (v0.2.0), but does not contain package github.com/browserutils/kooky/browser/chrome

For the third one, I get

go: finding module for package github.com/browserutils/kooky/browser/safari
go: test.test imports
        github.com/browserutils/kooky/browser/safari: module github.com/browserutils/kooky@latest found (v0.2.0), but does not contain package github.com/browserutils/kooky/browser/safari

I suspect the recent changes to your go.mod file in #71 are incomplete have made this package unusable for new users.

drgrib avatar Jan 28 '24 18:01 drgrib

Further confirmation that this package is in a bad state. Perhaps it just needs a new release:

>> go get github.com/browserutils/kooky
go: github.com/browserutils/[email protected]: parsing go.mod:
        module declares its path as: github.com/zellyn/kooky
                but was required as: github.com/browserutils/kooky
>> go get github.com/browserutils/kooky@d4f81abd0200477c02a2745278fdb7bb3ce0387d
go: github.com/browserutils/[email protected]: parsing go.mod:
        module declares its path as: github.com/zellyn/kooky
                but was required as: github.com/browserutils/kooky

drgrib avatar Jan 28 '24 19:01 drgrib

@drgrib the problem is that the fix in #71 was never included in a new tagged release.

This should work: go get github.com/browserutils/kooky@master, but it would be nice if @zellyn could tag a new release.

alxjsn avatar May 10 '24 20:05 alxjsn

published v0.2.1 - it should work again

srlehn avatar May 25 '24 19:05 srlehn

all package examples (Example_chromeSimpleMacOS, Example_cookieJar), regular examples (ExampleReadCookies_all, ExampleFindAllCookieStores, ExampleExportCookies, ExampleFilter_regex, ExampleFilterCookies) functions and readme examples (Any Browser - Cookie Filter Usage, Chrome on macOS, Safari) tested.

srlehn avatar May 26 '24 12:05 srlehn