bring the repo up to org standards (closes #1) #7
Reference in New Issue
Block a user
Delete Branch "clawbot/dcf:issue-1-repo-standards"
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?
Brings
dcfto the org repo standards.Tooling. A
Makefileof thin shims over a full scripts-to-rule-them-allscript/set;.golangci.ymlvendored byte-identical fromsneak/prompts; docker-only linting viaDockerfile.lint; aDockerfilewith the lint and test stages, and a Gitea workflow runningscript/cibuild; prettier, editorconfig and dockerignore config.go.modtidied (drops the unusedlmittmann/tintindirect).Lint. The canonical config reported 57 findings on
pkg/dcf; they are cleared. Two were real bugs:findDCFMountPointschecked a never-assignederroinstead of the error fromfindAllMountPoints, discarding it, andprivatePathwas computed twice, so the first computation was dead.README keeps all its content, reorganised into the required sections and gaining Entrypoints.
Things a reader would trip over
master. clawbot is not an admin on this repo, so the rename tomainreturns 403 on both branch creation and thedefault_branchedit. sneak has to flip it.sneak/dcf, so this PR comes from a fork (clawbot/dcf) rather than a branch here. Pushing the branch to this repo is rejected by the pre-receive hook.DCFStoreis nowStoreandDCFObjectis nowObject(fieldDCFStoreRoottoStoreRoot). This is an API break, forced by revive's stutter rule, and it is the naming thefs.FSrework in #4 builds on.privatePathstore left the check that was actually live, which statsM4ROOTat the filesystem root rather thanPRIVATE/M4ROOT. That, and arequestedCountoff-by-one, are filed as #6 rather than changed here: both are behaviour decisions, not lint fixes..golangci.ymlis in.prettierignore. Prettier formats YAML, and letting it reformat the vendored config would fork it from canonical. The vendored copy is byte-identical tosneak/prompts.go.moddeclaresgo 1.25.7, matching the pinnedgolang:1.25.7-bookwormbuilder image. Naming a newer toolchain would make the build stage download one.GetDCFStores, which needs real mounted media;fstest.MapFStesting arrives with #4. Coverage is over the exported surface instead of the placeholder test that was there.git.eeqj.de/sneak/dcf). Policy sayssneak.berlin/go/<name>; moving it is a breaking change nobody asked for in the issue, so it is left for a decision.closes #1
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.