Deprecate Go module github.com/go-gitea/gitea #11218

Closed
opened 2025-11-02 09:31:07 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @hickford on GitHub (Jul 13, 2023).

Feature Description

https://pkg.go.dev/github.com/go-gitea/gitea hosts a very old version of Gitea v1.8.3 published 2019 (tag https://github.com/go-gitea/gitea/tree/v1.8.3)

This is confusing. Best would be to deprecate this module and link to maintained module https://pkg.go.dev/code.gitea.io/gitea

instructions in https://go.dev/ref/mod though it assumes the module already has a go.mod file

example of deprecated module https://pkg.go.dev/github.com/golang/protobuf with helpful warning on top

Screenshots

No response

Originally created by @hickford on GitHub (Jul 13, 2023). ### Feature Description https://pkg.go.dev/github.com/go-gitea/gitea hosts a very old version of Gitea v1.8.3 published 2019 (tag https://github.com/go-gitea/gitea/tree/v1.8.3) This is confusing. Best would be to deprecate this module and link to maintained module https://pkg.go.dev/code.gitea.io/gitea instructions in https://go.dev/ref/mod though it assumes the module already has a go.mod file example of deprecated module https://pkg.go.dev/github.com/golang/protobuf with helpful warning on top ### Screenshots _No response_
GiteaMirror added the type/proposal label 2025-11-02 09:31:08 -06:00
Author
Owner

@wolfogre commented on GitHub (Jul 13, 2023):

It's not easy. Unlike github.com/golang/protobuf -> google.golang.org/protobuf(github.com/protocolbuffers/protobuf-go), Gitea didn't move to a new repository; it just renamed the module name.

That means if we want to get a deprecation warning on go.dev, we have to update the go.mod file on the release/v1.8 branch and release v1.8.4. That's too weird for now. Unfortunately, there's no go.mod file on release/v1.18; it used dep with Gopkg.toml.

Actually, Gitea is designed as an application, not a package, it doesn't really matter what go.dev has done with it.

@wolfogre commented on GitHub (Jul 13, 2023): It's not easy. Unlike `github.com/golang/protobuf` -> `google.golang.org/protobuf`(`github.com/protocolbuffers/protobuf-go`), Gitea didn't move to a new repository; it just renamed the module name. That means if we want to get a deprecation warning on go.dev, we have to update the `go.mod` file on the `release/v1.8` branch and release `v1.8.4`. That's too weird for now. Unfortunately, there's no `go.mod` file on `release/v1.18`; it used dep with `Gopkg.toml`. Actually, Gitea is designed as an application, not a package, it doesn't really matter what go.dev has done with it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11218