pixi icon indicating copy to clipboard operation
pixi copied to clipboard

chore: rename `ProjectModel` to `PackageModel`

Open Hofer-Julian opened this issue 3 weeks ago • 4 comments
trafficstars

While browsing the source code, @tdejager and I found that ProjectModel is a pretty confusing name, since:

  • We don't have projects anymore, but workspaces
  • It's also not the data of the workspace, but rather data specific to one package

We propose to rename it to PackageModel

AI disclosure

Nearly all of it is generated by codex

Hofer-Julian avatar Oct 29 '25 14:10 Hofer-Julian

Should we also remove the version suffix?

Maybe? What was the original idea to have them?

Hofer-Julian avatar Oct 29 '25 15:10 Hofer-Julian

Excellent question. Initially we negotiated the version using the protocol itself. That meant that the protocol types had to support multipe versions. Now that we use a package version for this I think we can greatly simplify this.

baszalmstra avatar Oct 29 '25 16:10 baszalmstra

We still need something like it if we want to support a range of build api versions in pixi right?

tdejager avatar Oct 29 '25 18:10 tdejager

Yes, we currently define a lower and upper limit of versions. The types in the crate should support those.

baszalmstra avatar Oct 29 '25 18:10 baszalmstra