Closed thesayyn closed 3 months ago
This fixes an issue where two calls in the same extension instance fails because bzlmod extensions share working directory per use_extension call.
use_extension
This works;
apt = use_extension("@rules_distroless//apt:extensions.bzl", "apt") apt.install( name = "bullseye", lock = ":bullseye.lock.json", manifest = ":bullseye.yaml", ) apt2 = use_extension("@rules_distroless//apt:extensions.bzl", "apt") apt2.install( name = "bullseye_nolock", lock = ":bullseye.lock.json", manifest = ":bullseye.yaml", )
but this fails
apt = use_extension("@rules_distroless//apt:extensions.bzl", "apt") apt.install( name = "bullseye", lock = ":bullseye.lock.json", manifest = ":bullseye.yaml", ) apt.install( name = "bullseye_nolock", # lock = ":bullseye.lock.json", manifest = ":bullseye.yaml", )
This fixes an issue where two calls in the same extension instance fails because bzlmod extensions share working directory per
use_extension
call.This works;
but this fails