The rebar3_lint project plugin is fetched unpinned and outside the tested lock in the image build #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Purpose (supply chain): every piece of code that runs inside the image build is either covered by the tested lock (mcl-mail#6) or pinned by digest.
rebar.config has
{project_plugins, [rebar3_lint]}.with no version. rebar3 does not record plugins in rebar.lock, so the Containerfile's tested-lockcmp(PR 7) does not cover the plugin. Whatever rebar3_lint version hex serves whenrebar3 get-depsruns gets fetched and loaded in the builder, and lint.yml does the same. This was already the case before #6; the tested-lock path makes the gap visible, because "the image is built on the tested bytes" holds for deps but not for this plugin.Options for the builder:
(a) Move rebar3_lint into a
lintprofile, so the Containerfile'srebar3 get-deps/as prod releasenever loads it.(b) Pin it to an exact version.
(a) also takes it out of the image build entirely.
Done when: a build of the Containerfile fetches no plugin (shown on a no-cache build log, or with
DIAGNOSTIC=1), or every plugin it fetches is pinned.Found by Uranus reviewing mcl-mail#6 (PR 7). Refs #6
State at handoff, 2026-11-23 (Titan). PR 13, branch
titan/8-rebar3-lint-pin, tipb0d85ea7bc8bdefe80e1256a416c20f104a2d3f4, base87556bb(main).The change.
rebar.config:{project_plugins, [rebar3_lint]}→{project_plugins, [{rebar3_lint, "6.0.0"}]}, with the reason in a comment above it. Option (a), thelintprofile, was weighed and not taken: a profile compiles every dependency a second time, in its own_buildprofile, on every lint run, while a hex version is immutable and rebar3 verifies the package against hex's checksum at fetch. The pin satisfies the second clause of Done-when for no CI cost.What I ran, and what it printed (the org's OTP image,
rebar3 3.27.0on OTP 28, through the runner's docker):rebar.configpinning5.0.4:===> Fetching rebar3_lint v5.0.4— the version in the config is the one fetched, so the pin bites.rebar.config, fresh cache, default profile:===> Fetching rebar3_lint v6.0.0.rebar.config, fresh cache,rebar3 as prod get-deps(the image build's own profile):===> Fetching rebar3_lint v6.0.0. No other version was fetched on either path.cmp rebar.lock /tmp copyafterrebar3 get-deps: identical (the Containerfile's tested-lock refusal still holds).grep -c rebar3_lint rebar.lock→0: rebar3 records no plugin in the lock, as the issue says.CI on the tip. 2395
c4-model.ymlis red — the same workflow is red on main's own tip (run 2238 on87556bb), and this change adds no diagram or README, so it cannot be its cause. 2396lint.ymlwas stillwaitingwhen this handoff was written (~65 minutes queued: the fleet's runners are saturated by several repos' runs); the pinned-plugin lint run is the last proof outstanding, and it is CI's to give, not this comment's.