mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 16:35:53 +02:00
[GH-ISSUE #952] GO Client library v1 broken? #666
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#666
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @larscom on GitHub (Nov 19, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/952
🐞 Describe the bug
go get heckel.io/ntfy@v1.31.0doesn't seem to work anymore💻 Components impacted
GO client library
💡 Screenshots and/or logs
go: heckel.io/ntfy@v1.31.0: unrecognized import path "heckel.io/ntfy": parse https://heckel.io/ntfy?go-get=1: no go-import meta tags (meta tag heckel.io/ntfy/v2 did not match import path heckel.io/ntfy)🔮 Additional context
I've tried to find a v2 version but can't seem to find one.
@binwiederhier commented on GitHub (Nov 19, 2023):
I'm sorry. There was another ticket around naming it /v2 and I tried to get that to work, but now both are broken. Any hits as to how to fix this are appreciated.
@binwiederhier commented on GitHub (Nov 19, 2023):
My guess is that I have to publish a v2 with the new import pat, which I just did. So I hope it'll be resolved later. But idk.
@larscom commented on GitHub (Nov 19, 2023):
Your paths seem fine, you didnt make a git tag yet for v2+ which is the problem i think.
@larscom commented on GitHub (Nov 19, 2023):
i think this will solve the problem yes.
@binwiederhier commented on GitHub (Nov 20, 2023):
It did in fact not solve the problem. I had to actually make two module files. Here's what fixed it:
Old module (v1, at https://heckel.io/ntfy):
New module (v2, https://heckel.io/ntfy/v2):
The
-xflag and theGONOPROXYenv variable also helped:Curious: What are you using the lib for? I make no guarantees for the use as a Go lib. The client lib in particular is very rudimentary.
@larscom commented on GitHub (Nov 20, 2023):
I use it in my go (private) apps, just to send notifications. I could make it myself but its nice to have something that is already ready to use ;)