Skip to content

Commit ba86bc1

Browse files
authored
feat(mcpp.plugins): 0.5.1, overlapping roots are refused (#373)
0.5.0's design record required the refusal and 0.5.0 shipped without it. A file reachable from two roots has two namespace paths, and which one it got depended on the order of the list; it was also read twice and merged with itself, so the entry looked like two implementations agreeing rather than one file counted twice. 0.5.1 also stops a single-file root from registering a re-run glob over the directory that file happens to sit in. The floor stays at mcpp 2026.9.8.1. The CN asset is the same bytes as the GitHub source archive of tag v0.5.1, sha256 1be429b00faaf48afa6c607bdcb98f05b242fef297bd2c588f67fae98f0d83e1, verified by downloading it back after the upload.
1 parent cf37297 commit ba86bc1

1 file changed

Lines changed: 31 additions & 4 deletions

File tree

pkgs/m/mcpp.plugins.lua

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
-- each member selected by a feature.
33
--
44
-- [dependencies.mcpp]
5-
-- plugins = { version = "0.5.0", features = ["rules-spirv"], host-module = true }
5+
-- plugins = { version = "0.5.1", features = ["rules-spirv"], host-module = true }
66
--
77
-- // build.mcpp
88
-- import mcpp;
@@ -283,6 +283,12 @@
283283
-- The floor does not move. 0.5.0 changes what the package generates, not what
284284
-- it asks the engine for, so it stays at mcpp 2026.9.8.1.
285285
--
286+
-- 0.5.1 refuses overlapping roots, which 0.5.0's design record required and
287+
-- 0.5.0 shipped without: a file reachable from two roots had two namespace
288+
-- paths, and which one it got depended on the order of the list. It also stops
289+
-- a single-file root from registering a re-run glob over the directory that
290+
-- file happens to sit in.
291+
--
286292
-- The descriptor points at the source archive of the tag, the shape `grpcgen`
287293
-- established; the CN asset is the same bytes, so one sha256 names both.
288294
package = {
@@ -296,6 +302,13 @@ package = {
296302

297303
xpm = {
298304
linux = {
305+
["0.5.1"] = {
306+
url = {
307+
GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.5.1.tar.gz",
308+
CN = "https://gitcode.com/mcpp-res/mcpp-plugins/releases/download/0.5.1/mcpp-plugins-0.5.1.tar.gz",
309+
},
310+
sha256 = "1be429b00faaf48afa6c607bdcb98f05b242fef297bd2c588f67fae98f0d83e1",
311+
},
299312
["0.5.0"] = {
300313
url = {
301314
GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.5.0.tar.gz",
@@ -380,9 +393,16 @@ package = {
380393
},
381394
sha256 = "adf1f9d6691a5d05a8a4a94e83c733ea39caee1510ce2c9af4cb23bebabea9f5",
382395
},
383-
["latest"] = { ref = "0.5.0" },
396+
["latest"] = { ref = "0.5.1" },
384397
},
385398
macosx = {
399+
["0.5.1"] = {
400+
url = {
401+
GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.5.1.tar.gz",
402+
CN = "https://gitcode.com/mcpp-res/mcpp-plugins/releases/download/0.5.1/mcpp-plugins-0.5.1.tar.gz",
403+
},
404+
sha256 = "1be429b00faaf48afa6c607bdcb98f05b242fef297bd2c588f67fae98f0d83e1",
405+
},
386406
["0.5.0"] = {
387407
url = {
388408
GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.5.0.tar.gz",
@@ -467,9 +487,16 @@ package = {
467487
},
468488
sha256 = "adf1f9d6691a5d05a8a4a94e83c733ea39caee1510ce2c9af4cb23bebabea9f5",
469489
},
470-
["latest"] = { ref = "0.5.0" },
490+
["latest"] = { ref = "0.5.1" },
471491
},
472492
windows = {
493+
["0.5.1"] = {
494+
url = {
495+
GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.5.1.tar.gz",
496+
CN = "https://gitcode.com/mcpp-res/mcpp-plugins/releases/download/0.5.1/mcpp-plugins-0.5.1.tar.gz",
497+
},
498+
sha256 = "1be429b00faaf48afa6c607bdcb98f05b242fef297bd2c588f67fae98f0d83e1",
499+
},
473500
["0.5.0"] = {
474501
url = {
475502
GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.5.0.tar.gz",
@@ -554,7 +581,7 @@ package = {
554581
},
555582
sha256 = "adf1f9d6691a5d05a8a4a94e83c733ea39caee1510ce2c9af4cb23bebabea9f5",
556583
},
557-
["latest"] = { ref = "0.5.0" },
584+
["latest"] = { ref = "0.5.1" },
558585
},
559586
},
560587

0 commit comments

Comments
 (0)