Skip to content

Use stdlib uuid package instead of github.com/google/uuid - #7121

Merged
pietern merged 2 commits into
mainfrom
go127-uuid
Oct 20, 2026
Merged

pietern merged 2 commits into
mainfrom
go127-uuid

Conversation

@pietern

@pietern pietern commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Changes

Replace github.com/google/uuid with the uuid package added to the standard library in Go 1.27. github.com/google/uuid remains an indirect dependency.

uuid.New behaves the same: both read 16 bytes from crypto/rand and set the v4 version and variant bits (the CLI never used google/uuid's SetRand or EnableRandPool). Text and JSON encoding are identical, so existing deployment state and lock files decode unchanged. Parse is stricter: it rejects 38-character forms not wrapped in {…} (google/uuid ignores the first and last character) and a non-lowercase urn:uuid: prefix.

This pull request and its description were written by Isaac.

Go 1.27 adds a uuid package to the standard library. Its New, Parse,
String and text/JSON encoding behave the same as google/uuid for the
forms the CLI produces and accepts, so existing deployment state and
lock files decode unchanged.

Parse is stricter than google/uuid: it rejects an upper- or mixed-case
"urn:uuid:" prefix and any 38-character form not wrapped in braces
(google/uuid accepts e.g. "(...)" or "[...]"). Error text also differs.

google/uuid remains an indirect dependency via the SDK and others.

Co-authored-by: Isaac <no-reply@databricks.com>
@github-actions github-actions Bot added DABs DABs related issues AIR Databricks AI Runtime CLI labels Oct 20, 2026
It is no longer a direct dependency.

Co-authored-by: Isaac <no-reply@databricks.com>
@pietern
pietern marked this pull request as ready for review October 20, 2026 11:18
@pietern
pietern enabled auto-merge October 20, 2026 11:18
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 8865554

Run: 39413359378

Env ✅​pass 🙈​skip Time
✅​ aws linux-2core-8gb 280 15 4:10
✅​ aws-windows-latest-4core-16gb 282 13 4:49
✅​ azure linux-2core-8gb 279 15 4:04
✅​ azure-windows-latest-4core-16gb 281 13 5:02
✅​ gcp linux-2core-8gb 280 15 4:05
✅​ gcp-windows-latest-4core-16gb 282 13 3:28
Top 3 slowest tests (at least 2 minutes):
duration env testname
4:56 azure-windows-latest-4core-16gb TestAccept
4:45 aws-windows-latest-4core-16gb TestAccept
3:22 gcp-windows-latest-4core-16gb TestAccept

@pietern
pietern added this pull request to the merge queue Oct 20, 2026
Comment thread go.mod
github.com/godbus/dbus/v5 v5.2.2 // indirect
github.com/google/go-querystring v1.2.0 // indirect
github.com/google/s2a-go v0.1.9 // indirect
github.com/google/uuid v1.6.0 // indirect

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we also update databricks-sdk-go? or does that need to support previous golang versions as well.

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.

Yes, up to EOL. And there's also other deps that still pull it in.

Merged via the queue into main with commit b158966 Oct 20, 2026
36 checks passed
@pietern
pietern deleted the go127-uuid branch October 20, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AIR Databricks AI Runtime CLI DABs DABs related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants