Skip to content

update docs for latest#226

Merged
matthewpeterkort merged 6 commits intodevelopmentfrom
fix/fix-docs
May 7, 2026
Merged

update docs for latest#226
matthewpeterkort merged 6 commits intodevelopmentfrom
fix/fix-docs

Conversation

@bwalsh
Copy link
Copy Markdown
Contributor

@bwalsh bwalsh commented May 5, 2026

Docs: Align Install/Setup Guidance With Current CLI Behavior

Why this change

Install/setup documentation had drifted from current CLI behavior and module requirements, which could lead to failed setup steps or confusing troubleshooting paths. This PR updates setup-facing docs to match the current codebase.

What changed

  • README.md

    • Updated source-build prerequisite from Go 1.24+ to Go 1.26.2+ (matches go.mod).
  • docs/developer-guide.md

    • Updated development prerequisite from Go 1.24+ to Go 1.26.2+.
  • docs/installation.md

    • Fixed HPC Git LFS cleanup commands to use the same downloaded version (v3.7.1).
    • Improved PATH setup wording to be shell-startup-file agnostic (~/.zshrc, ~/.bashrc, ~/.profile).
  • docs/commands.md

    • Corrected git drs init option docs:
      • --transfers default is 1 (not 4)
      • Added missing flags: --upsert, --multipart-threshold, --enable-data-client-logs
    • Updated git drs remote add gen3 docs:
      • --project documented as required
      • --cred / --token documented as auth inputs
      • --url changed from required to optional override
      • Updated examples and added initial-auth note
    • Removed duplicate git drs add-url section and kept one canonical section.
  • docs/troubleshooting.md

    • Replaced invalid git drs list-config with supported git drs remote list.
    • Removed invalid git drs init --cred/--profile guidance.
    • Updated recovery flows to supported commands (git drs init, git drs remote add ... --cred|--token).
    • Corrected path reference to .git/drs/.

Validation performed

  • Cross-checked docs against:
    • go.mod (Go version)
    • cmd/initialize/main.go (init flags/defaults)
    • cmd/remote/add/gen3.go (remote add gen3 behavior)
  • Spot-checked command help for:
    • git-drs init --help
    • git-drs remote add gen3 --help
  • Searched docs to ensure stale/invalid patterns were removed (old defaults, invalid commands, duplicate add-url section).

User impact

  • Reduces setup failures caused by stale prerequisites/flags.
  • Makes troubleshooting steps executable as written.
  • Improves consistency between docs and current CLI behavior.

Scope

  • Documentation-only changes
  • No CLI/runtime behavior changes
  • No migration or config format changes required

Copilot AI review requested due to automatic review settings May 5, 2026 20:04
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9b5d03aab3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/commands.md Outdated
- `--project <id>`: Project ID (required)
- `--cred <file>`: Path to credentials JSON file
- `--token <token>`: Token for temporary access (alternative to `--cred`)
- `--url <url>`: Optional Gen3 endpoint override
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Remove unsupported Gen3 endpoint override documentation

When a user supplies --url to override the Gen3 endpoint, the command will silently keep using the endpoint parsed from --token/--cred or the existing profile: cmd/remote/add/init.go registers the flag, but gen3Init in cmd/remote/add/gen3.go declares a new local apiEndpoint and only assigns it from the token, credential file, or loaded profile. Documenting this as an endpoint override can send users to the wrong server during setup or credential refresh, so either the docs should not claim override behavior or the CLI should wire the flag through.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates user- and developer-facing documentation to better align install/setup and troubleshooting guidance with the current git-drs CLI and repository layout.

Changes:

  • Updated Go version prerequisites in README.md and docs/developer-guide.md to match go.mod (Go 1.26.2+).
  • Refreshed installation and troubleshooting instructions (PATH setup wording, HPC Git LFS cleanup commands, and replaced unsupported commands with supported ones).
  • Updated docs/commands.md to reflect current git drs init flags/defaults and revised git drs remote add gen3 documentation.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
README.md Updates source-build Go prerequisite to match go.mod.
docs/developer-guide.md Updates development Go prerequisite to match go.mod.
docs/installation.md Improves PATH setup wording and aligns HPC Git LFS cleanup commands with downloaded version.
docs/commands.md Updates init flag docs and revises remote add gen3 section; removes duplicate add-url section.
docs/troubleshooting.md Replaces invalid commands and updates recovery flows to supported init/remote commands and .git/drs/ paths.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/commands.md Outdated
Comment on lines +98 to +102
--project <project-id> \
[--bucket <bucket-name>]
[--organization <program>] \
[--bucket <bucket-name>] \
[--cred <credentials-file> | --token <token>] \
[--url <server-url>]
Comment thread docs/commands.md Outdated
Comment on lines +108 to +111
- `--cred <file>`: Path to credentials JSON file
- `--token <token>`: Token for temporary access (alternative to `--cred`)
- `--url <url>`: Optional Gen3 endpoint override
- `--organization <name>`: Program/organization scope used for bucket mapping
@bwalsh
Copy link
Copy Markdown
Contributor Author

bwalsh commented May 6, 2026

All user-facing git lfs ... commands have been replaced with their git drs equivalents across every doc file

Summary of changes

Old command New command
git lfs track git drs track
git lfs untrack git drs untrack
git lfs ls-files git drs ls-files
git lfs pull git drs pull
git lfs pull -I "pattern" git drs pull
git lfs install git drs install
git lfs version git drs version
git lfs pre-push git drs pre-push-prepare
git lfs env git drs remote list
git lfs logs last cat .git/drs/*.log
git lfs push --all git drs push

Additional documentation updates

  • Removed the Git LFS Commands section from docs/commands.md and replaced it with git drs command guidance.
  • Reworked troubleshooting guidance to use git drs workflows and diagnostics.
  • Kept implementation-level lfs identifiers where they are part of real config keys, paths, code symbols, or file format contracts.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 8 comments.

Comments suppressed due to low confidence (1)

docs/precommit.md:69

  • This calls the pointer format a “Git DRS pointer”, but the actual pointer format is the Git LFS pointer spec (version https://git-lfs.github.com/spec/v1). To avoid confusion, describe these as “Git LFS pointers” or “Git LFS-compatible pointers used by Git DRS”.
## Cache Scope (Important)

Only files whose **staged content** is a valid Git DRS pointer are in scope:

version https://git-lfs.github.com/spec/v1
oid sha256:

Comment thread docs/commands.md Outdated
Comment on lines +107 to +111
- `--project <id>`: Project ID (required)
- `--cred <file>`: Path to credentials JSON file
- `--token <token>`: Token for temporary access (alternative to `--cred`)
- `--url <url>`: Optional Gen3 endpoint override
- `--organization <name>`: Program/organization scope used for bucket mapping
Comment thread docs/commands.md Outdated

- Identifies remote and project from configuration
- Transfers all DRS records for a given project from the server to the local `.git/drs/lfs/objects/` directory
- Transfers all DRS records for a given project from the server to the local `.git/drs/objects/` directory
Comment thread docs/commands.md Outdated
**What it does:**

- Checks local `.git/drs/lfs/objects/` for DRS metadata
- Checks local `.git/drs/objects/` for DRS metadata
Comment thread docs/developer-guide.md
Comment on lines +13 to 15
- Processes all staged files
- Creates DRS records for new files
- Only processes files that don't already exist on the DRS server
Comment thread docs/developer-guide.md
### DRS Object Management

Objects are stored in `.git/drs/lfs/objects/` during pre-commit and referenced during push/pull workflows.
Objects are stored in `.git/drs/objects/` during pre-commit and referenced during push/pull workflows.
Comment thread docs/adding-s3-files.md Outdated
1. `add-url` performs object metadata lookup (HEAD/attributes).
2. Synthetic OID is derived from ETag (`sha256(etag)`).
3. A local sentinel object is written into `.git/lfs/objects/...`.
3. A local sentinel object is written into `.git/drs/objects/...`.
Comment thread docs/precommit.md
* Never performs network I/O
* Never queries DRS or DRS
* Ignores all non-LFS files
* Ignores all non-tracked files
Comment thread docs/precommit.md

* `path` is repo-relative
* `lfs_oid` comes from the staged LFS pointer
* `lfs_oid` comes from the staged DRS pointer
@matthewpeterkort matthewpeterkort changed the base branch from main to development May 7, 2026 16:00
@matthewpeterkort matthewpeterkort merged commit 1fda562 into development May 7, 2026
@matthewpeterkort matthewpeterkort deleted the fix/fix-docs branch May 7, 2026 16:14
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.

3 participants