Add local cargo registry type #144
Reference in New Issue
Block a user
Delete Branch "benvin/local-cargo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Private Rust crates have nowhere to publish: artifactapi only proxies cargo registries, with no local type cargo can publish to.
Fooandfoo(same or different version) both succeed and the shared lower-cased index file then mixes two crate names → add UNIQUE(repo_name, lower(name), version) in 0003_cargo_index.sql (map 23505 to 409) and take pg_advisory_xact_lock(hashtext(repo||lower(name))) around check+insert for the different-version case.1,1..2,1.0.0--) and a badversmakes cargo fail to parse the entire index file for that crate → parse with golang.org/x/mod/semver-style strict semver (or blang/semver) and reject; also reject a secondX.Y.Z+otherbuild-metadata variant of an existing version (cargo treats them as the same version).foo-barandfoo_barare distinct crates here (crates.io treats them as one) → normalize-/_in the collision check.0003_prefix also used by #140 (0003_helm_metadata) and #135 (0003_github_sync_state_cascade); names differ so they apply, no test enforces uniqueness → renumber to next free number on whichever merges later.lower(name) = $2 AND version = $3, but uniqueness is onreplace(lower(name),'-','_')andsplit_part(version,'+',1);yank foo_baron a crate published asfoo-bar, or--vers 1.0.0on a1.0.0+arow, returns 404 → match on the same normalised expressions (at most one row can match).View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.