Skip to content

build: move the project to github.com/nerv-base/mytoken - #8

Merged
zzstar101 merged 2 commits into
mainfrom
docs/awesome-mygo-badge
Nov 5, 2026
Merged

zzstar101 merged 2 commits into
mainfrom
docs/awesome-mygo-badge

Conversation

@zzstar101

@zzstar101 zzstar101 commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to the move into the nerv-base organisation: everything that still pointed at zzstar101/mytoken now points at nerv-base/mytoken, and the project gets its Awesome MyGo badge.

Two commits, no hand-edited generated files, no behaviour change.

1. readme: link the listing on Awesome MyGo

One line in each README's badge block:

<a href="https://awesomemygo.dev/apps/mytoken"><img alt="Listed on Awesome MyGo" src="https://awesomemygo.dev/badge.svg"></a>

The HTML form (not [![…](…)](…)) because Markdown is not parsed inside the surrounding raw <p align="center"> block. Both URLs answer 200.

2. build: move the module path to github.com/nerv-base/mytoken

go install github.com/nerv-base/mytoken@latest failed before this:

github.com/nerv-base/mytoken@v0.5.7: parsing go.mod:
	module declares its path as: github.com/zzstar101/mytoken
	        but was required as: github.com/nerv-base/mytoken
  • go.mod → module github.com/nerv-base/mytoken
  • imports rewritten in 283 files (690 import lines); gofmt -w re-sorted the blocks whose order changed
  • Makefile → PKG := github.com/nerv-base/mytoken; checked by building with -X $(PKG)/internal/cli.Version=9.9.9 and reading it back from mytoken version
  • both READMEs: badge targets, Releases links, install.sh and tarball URLs, and the go install line

Deliberately unchanged — there zzstar101 is a person, not a path: LICENSE, THIRD_PARTY_NOTICES, mygo.json (copyright, maintainer), the README copyright lines, and the historical CHANGELOG.md release link for v0.1.3.

Install command timing

go install github.com/nerv-base/mytoken@latest only resolves once a tag carrying this go.mod is published, so the README says so and keeps the old path documented for older tags (GitHub redirects it). Re-tagging v0.5.7 or cutting v0.6.0 makes the new command work.

Verification

gofmt -l .                        # only the untracked build/verification/v040/compare.go, pre-existing
go build ./...                    # ok
go vet ./...                      # ok
GOOS=windows go vet ./...         # ok
go test ./...                     # 65 packages ok, 0 failures

go mod tidy -diff still shows unrelated pre-existing go.sum staleness (github.com/egoist/mygo 0.4.8/0.5.5 and golang.org/x/sync 0.23.0 leftovers); I left it out of this PR to keep the diff about the move only.

MyToken!!!!! is now listed on the Awesome MyGo showcase; this adds its badge to the English and Chinese READMEs.
The repository lives under the nerv-base organisation now, but every pointer
still said zzstar101/mytoken: the go.mod module path, the imports in 283 files,
the Makefile PKG that feeds -X ldflags, and the badge, release and install.sh
URLs in both READMEs. That made the new path unusable for the Go toolchain —
`go install github.com/nerv-base/mytoken@latest` failed with "module declares
its path as: github.com/zzstar101/mytoken but was required as:
github.com/nerv-base/mytoken" — so the install command could not point at
nerv-base until the module path moved with it.

- go.mod: module github.com/nerv-base/mytoken
- imports rewritten in 283 files (690 import lines); gofmt re-sorted the blocks
  whose order changed
- Makefile: PKG := github.com/nerv-base/mytoken, verified by building with
  -X $(PKG)/internal/cli.Version=9.9.9 and reading it back from `mytoken version`
- README.md / README.zh-CN.md: badges, Releases links and the install.sh /
  tarball URLs now use nerv-base/mytoken; the `go install` line documents the
  new path and says it needs the first tag cut after this change, since earlier
  tags still install through the old path that GitHub redirects

Verified: gofmt -l clean, go build ./..., go vet ./..., GOOS=windows go vet ./...,
go test ./... (65 packages ok). The zzstar101 name stays where it is a person
rather than a path: LICENSE, THIRD_PARTY_NOTICES, mygo.json's maintainer and
copyright, the README copyright lines, and the historical CHANGELOG link.
@zzstar101 zzstar101 changed the title readme: link the listing on Awesome MyGo build: move the project to github.com/nerv-base/mytoken Nov 5, 2026
@zzstar101
zzstar101 merged commit ecfe57d into main Nov 5, 2026
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant