Skip to content

go.mod declares github.com/objectfs/objectfs — the module is not installable, and that path resolves to an unrelated 2019 project #213

Closed

Description

@scttfrdmn

What

go.mod declares the module path github.com/objectfs/objectfs, but the repository — and every
version tag — lives at github.com/scttfrdmn/objectfs. The two cannot both be right, and the
consequence is that the module is not importable or installable by anyone, under either path.

Verified

The go install command README.md:186 gives users:

$ go install github.com/scttfrdmn/objectfs/cmd/objectfs@latest
go: downloading github.com/scttfrdmn/objectfs v0.10.1
go: github.com/scttfrdmn/objectfs/cmd/objectfs@latest: version constraints conflict:
	github.com/scttfrdmn/[email protected]: parsing go.mod:
	module declares its path as: github.com/objectfs/objectfs
	        but was required as: github.com/scttfrdmn/objectfs

Same failure for go get. The proxy has all 14 tags under scttfrdmn/objectfs — v0.1.0 through
v0.10.1 — and every one of them is unusable for the same reason.

And the declared path resolves to somebody else's project. github.com/objectfs/objectfs is a
real GitHub organization and a real repository: a Python project from 2017, last pushed March 2019,
28 stars, described as "A file system with the power of an object store."

$ go get github.com/objectfs/objectfs@latest
go: downloading github.com/objectfs/objectfs v0.0.0-20190306233330-13bb5e240eb2
go: added github.com/objectfs/objectfs v0.0.0-20190306233330-13bb5e240eb2

That is the worst available outcome: the import path in this repo's own source resolves, silently and
successfully, to an unrelated seven-year-old repository under someone else's control.

Consequences

  • go install .../cmd/objectfs@latest — the second install method the README offers — fails for
    every user. Only the release binaries and git clone && make build work.
  • The Go SDK under sdks/go/objectfs cannot be imported by any downstream project. It has no
    go.mod of its own, so it is part of this module and inherits the broken path.
  • pkg.go.dev has no entry for either path (both 404), so the Go Reference badge in the README
    renders empty. That badge is a symptom of this issue, not a separate one.
  • CargoShip and GlobalFS both consume objectfs. Whatever they do to make that work is a local
    workaround for this.

The decision this needs

Whichever way it goes, it is a breaking change for any consumer, so it should happen at a version
boundary and be stated in CHANGELOG.md.

Option A — change go.mod to github.com/scttfrdmn/objectfs. Matches where the code actually
is, makes all 14 existing tags meaningful, and the README's go install starts working. Requires
rewriting every internal import (~hundreds of lines, but entirely mechanical: gofmt -r or
go mod edit plus a sed pass, verified by go build ./...). This is the option that makes the
existing tag history usable and does not depend on anyone else.

Option B — keep github.com/objectfs/objectfs and own that namespace. The org exists and is not
ours; the repo under it is a live project with users. So this needs the objectfs org to be acquired
or the name negotiated, and until that happens the path keeps resolving to the 2019 project. Not
viable as a near-term fix.

Option C — a vanity import path (objectfs.io/objectfs or similar) with a <meta name="go-import">
tag. Decouples the import path from the hosting forever, which is the durable answer if the project
ever moves. Costs a domain and a static page, and does not resolve today's tags without also
publishing them under the vanity path.

Recommend A now — it is mechanical, it fixes every symptom above, and it does not block on
anything external. C stays available later.

Also fix, in the same change

  • README.md:186 — the go install line, once the path is real.
  • The pkg.go.dev badge URL must match the final module path.
  • A CI check that would have caught this: build the module as a dependency from a scratch module,
    not just go build ./... inside the repo. go build ./... passes fine here — the path mismatch is
    invisible from inside the module, which is exactly why it survived 14 releases.

Activity

  1. added
    type: bug
    priority: critical
    area: core
    on Aug 2, 2026
  2. scttfrdmn commented on Aug 2, 2026

    @scttfrdmn
    OwnerAuthor

    Fixed on peer-review-prep in fc1e3f7 — leaving this open until it lands on main.

    module github.com/objectfs/objectfs → github.com/scttfrdmn/objectfs, across 154 files: go.mod, 132 Go files, the goimports local-prefixes setting in .golangci.yml, the Dockerfile image-source label, and the repository URLs in the Python and JavaScript SDK manifests — those last were pointing contributors at the wrong project.

    Verified by resolution rather than by grep, since resolution was the failure:

    // external module, replace-directive at the local tree
    import "github.com/scttfrdmn/objectfs/pkg/types"
    // go mod tidy: found github.com/scttfrdmn/objectfs/pkg/types
    // go run .:   ok

    go build, go vet, golangci-lint run --new-from-merge-base all clean; go test -race -count=1 ./... passes across 32 packages, 0 failures.

    Two side effects worth recording, both benign:

    • The rename moved scttfrdmn past aws alphabetically, so goimports regrouped one import block (tests/integration/mocks.go).
    • It pulled five docs files and one .golangci.yml line into a commit's pre-commit scope for the first time. The docs changes are blank-line-only (MD031/MD032). .golangci.yml is now excluded from pretty-format-yaml, which dedents its block sequences and unquotes its path:/text: regexes — valid YAML either way, but it breaks the comment alignment that carries the reason each linter is enabled.

    The Go Reference badge is still absent deliberately: it should go back only after a tag is published under the corrected path and pkg.go.dev has indexed it, which is not something to assert in advance.

    Note for the release: this is technically a breaking change to the import path, though nothing could have depended on the old one — it was never fetchable.

  3. scttfrdmn commented on Aug 2, 2026

    @scttfrdmn
    OwnerAuthor

    Verified fixed in a published tag as of v0.10.2.

    Worth recording that this issue was closed before it was fixed for anyone. The fix merged at 19:22Z; v0.10.1 had been tagged at 17:28Z, two hours earlier. So the corrected module path existed on main and in no tag — and from a user’s position, a fix that is in no tag is indistinguishable from no fix. v0.10.2 exists for that reason and no other.

    The contrast, run from a scratch module against the real proxy:

    $ go get github.com/scttfrdmn/[email protected]
    go: github.com/scttfrdmn/[email protected] requires github.com/scttfrdmn/[email protected]: parsing go.mod:
            module declares its path as: github.com/objectfs/objectfs
                    but was required as: github.com/scttfrdmn/objectfs
    
    $ go get github.com/scttfrdmn/[email protected]
    go: downloading github.com/scttfrdmn/objectfs v0.10.2
    go: added github.com/scttfrdmn/objectfs v0.10.2
    

    Downloadable is not the same as usable, so the tag was also compiled and run from that consumer:

    bt := reflect.TypeOf((*types.Backend)(nil)).Elem()   // types.Backend: 9 methods
    var c types.Configuration                            // resolves to config.GlobalConfig

    internal/ is correctly rejected from outside the module (use of internal package ... not allowed), which is the intended boundary rather than a regression.

    Also confirmed: the proxy lists v0.10.2 in go list -m -versions, the release published all four platform archives with matching .sha256 files (objectfs-darwin-arm64.tar.gz: OK), and the extracted binary reports ObjectFS version 0.10.2.

    The Go Reference badge can now go on — pkg.go.dev has a tag under the correct path to index for the first time. Tracking that separately rather than assuming indexing is instant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: corepriority: criticaltype: bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions