Skip to content

chore: update go module path to github.com/gotify/server/v3 - #1030

Merged
eternal-flame-AD merged 1 commit into
masterfrom
go-imports
Aug 16, 2026
Merged

chore: update go module path to github.com/gotify/server/v3#1030
eternal-flame-AD merged 1 commit into
masterfrom
go-imports

Conversation

@eternal-flame-AD

Copy link
Copy Markdown
Member

Updates go import paths to V3.

Sorry I missed this in the review. We need to update the go module path for any part of the V3 tree to be visible to the go toolchain. We would also have to bump the version once more to make plugins buildable again against v3.

Comment thread api/stream/client.go

"github.com/gorilla/websocket"
"github.com/gotify/server/v2/model"
"github.com/gotify/server/v3/model"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The plugin builds don't depend on gotify/server, why does the wrong module path block the plugin builds?


The build is failing because of formatting, otherwise this LGTM.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it needs a phantom dependency to gotify/server/v3 to ensure it gets built with compatible dependencies. If the import path is wrong it wont be able to reference it.

@jmattheis jmattheis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'll create a release later today or tomorrow (after merging #1029).

@codecov

codecov Bot commented Aug 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.78%. Comparing base (ef41eba) to head (5a36c8c).

Files with missing lines Patch % Lines
plugin/example/clock/main.go 0.00% 1 Missing ⚠️
plugin/example/echo/echo.go 0.00% 1 Missing ⚠️
plugin/example/minimal/main.go 0.00% 1 Missing ⚠️
plugin/testing/broken/cantinstantiate/main.go 0.00% 1 Missing ⚠️
plugin/testing/broken/malformedconstructor/main.go 0.00% 1 Missing ⚠️
plugin/testing/broken/noinstance/main.go 0.00% 1 Missing ⚠️
plugin/testing/broken/unknowninfo/main.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1030   +/-   ##
=======================================
  Coverage   74.78%   74.78%           
=======================================
  Files          66       66           
  Lines        3541     3541           
=======================================
  Hits         2648     2648           
  Misses        688      688           
  Partials      205      205           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@eternal-flame-AD
eternal-flame-AD added this pull request to the merge queue Aug 16, 2026
Merged via the queue into master with commit 8af44e0 Aug 16, 2026
3 of 4 checks passed
Bladeage added a commit to Bladeage/gotify-smtp that referenced this pull request Aug 20, 2026
Reviewer feedback on the original change: gotify/server#1030 moved the
server to github.com/gotify/server/v3, so the requirement this branch had
dropped can come back. It cannot come back unconditionally, though --
that commit landed on master a month after v3.0.0 was tagged, so the
released v3.0.0 still declares .../v2 while carrying a v3 tag. Neither
path resolves for it:

    server/v3@v3.0.0 -> go.mod has non-.../v3 module path ".../v2"
    server/v2@v3.0.0 -> version "v3.0.0" invalid: should be v2, not v3

The module path is therefore read from the server's own go.mod instead of
being derived from the tag name, and the requirement is only added when
its major version matches. master and future releases get it; v3.0.0 does
not, and the pinning below keeps that build aligned on its own.

`go get` instead of `go mod edit -require`, because the default
GOTIFY_VERSION is a branch name that has to be resolved to a
pseudo-version first.

Verified end to end for both paths: the plugin built with
GOTIFY_VERSION=v3.0.0 loads in gotify/server:3.0.0, the one built with
GOTIFY_VERSION=master loads in gotify/server:master (8af44e0). In both
cases the resulting go.mod matches the server's for all 31 shared
modules.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants