Skip to content

Use package:// URIs for stable, machine-independent file references#529

Merged
akhilles merged 6 commits intomainfrom
package-stable-paths
Feb 12, 2026
Merged

Use package:// URIs for stable, machine-independent file references#529
akhilles merged 6 commits intomainfrom
package-stable-paths

Conversation

@akhilles
Copy link
Contributor

@akhilles akhilles commented Feb 11, 2026

Note

Medium Risk
Touches core path resolution and layout sync plumbing across Rust and Python; incorrect URI/root mapping could break file discovery or produce wrong artifact paths across workspaces/dependencies.

Overview
Build artifacts (netlists/layout sync inputs) now prefer stable, machine-independent package://… URIs instead of absolute/relative filesystem paths.

This adds package-root tracking to the schematic JSON (package_roots) and introduces package:// parsing/formatting + resolution in pcb-sch/pcb-zen-core, updating File()/Path(), footprint path handling, and layout-path handling to emit/consume these URIs.

Layout generation/sync is updated to resolve layout_path, footprint library paths, and fragment paths via package roots (including Python lens adapter updates), and tests/resources/snapshots are refreshed accordingly (new pcb.toml workspaces, Layout(...) usage, and asset-based footprint references).

Written by Cursor Bugbot for commit 1c1f283. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@akhilles akhilles force-pushed the package-stable-paths branch from caf4e86 to 1c1f283 Compare February 12, 2026 03:11
@akhilles akhilles merged commit 10da5b3 into main Feb 12, 2026
12 checks passed
@akhilles akhilles deleted the package-stable-paths branch February 12, 2026 03:25
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.

2 participants