Skip to content

chore: update vendored Sourcegraph lib#1328

Merged
bahrmichael merged 3 commits into
mainfrom
bahrmichael/update-vendored-lib
Jun 1, 2026
Merged

chore: update vendored Sourcegraph lib#1328
bahrmichael merged 3 commits into
mainfrom
bahrmichael/update-vendored-lib

Conversation

@bahrmichael
Copy link
Copy Markdown
Contributor

@bahrmichael bahrmichael commented Jun 1, 2026

PR is fully Amp-generated after I ran dev/vendor-lib.sh. See https://ampcode.com/threads/T-019e8206-7c7d-76cb-9b08-b6e0df454e15.


This updates the vendored github.com/sourcegraph/sourcegraph/lib snapshot so src-cli stays current with the shared library code it depends on.

I ran ./dev/vendor-lib.sh from this repository while ../sourcegraph was on main at bdc2f4bb8b59f78f4fa8868b2690b673b41948d4 with a clean worktree. The script refreshed the selected packages under lib/, rewrote lib/README.md with the source commit/date, and regenerated the nested lib/go.mod contents.

After vendoring, go test ./... exposed a few src-cli compatibility gaps from APIs/packages that are still used locally but no longer discovered or preserved by the raw vendoring step. I restored the still-needed validation/docgen/helper packages and kept small compatibility shims for output status bars, progress options, styles, and code-intel request logging. I also re-added the step.files target-path validation that src-cli tests still expect.

Test Plan

go test ./...

Vendor github.com/sourcegraph/sourcegraph/lib at bdc2f4bb8b59f78f4fa8868b2690b673b41948d4 and restore src-cli compatibility for APIs still used locally.

Test Plan:

go test ./...

Amp-Thread-ID: https://ampcode.com/threads/T-019e8206-7c7d-76cb-9b08-b6e0df454e15
Co-authored-by: Amp <amp@ampcode.com>
Comment thread lib/batches/execution/cache/cache.go
Comment thread lib/batches/execution/cache/cache.go
@bahrmichael bahrmichael merged commit 06cd2cd into main Jun 1, 2026
8 checks passed
@bahrmichael bahrmichael deleted the bahrmichael/update-vendored-lib branch June 1, 2026 09:51
Comment thread lib/go.mod
)

// See: https://github.com/ghodss/yaml/pull/65
replace github.com/ghodss/yaml => github.com/sourcegraph/yaml v1.0.1-0.20200714132230-56936252f152
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

and regenerated the nested lib/go.mod contents

@bahrmichael Looks like you nuked it? I'll send a PR

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That was the result of running the vendor lib script. We may need to fix that script if this change is not intentional.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Looking at the vendor script, it looks like the go mod tidy at the end may have a silent failure.

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