From 5ee66a86eea424f05ee88baba3c5c81d820555c7 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 16 Jun 2026 22:06:34 +0900 Subject: [PATCH] internal/rosa/python: respect toolchain opts This was missed when migrating the pip helper. Signed-off-by: Ophestra --- internal/rosa/python.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/rosa/python.go b/internal/rosa/python.go index 3ebc1e08..56d23339 100644 --- a/internal/rosa/python.go +++ b/internal/rosa/python.go @@ -46,7 +46,7 @@ func (*PipHelper) scriptEarly() string { return "" } func (*PipHelper) wantsDir() (string, bool) { return `"$(mktemp -d)"`, false } // script generates the pip3 install command. -func (attr *PipHelper) script(_ Toolchain, name string) string { +func (attr *PipHelper) script(t Toolchain, name string) string { if attr == nil { attr = new(PipHelper) } @@ -70,7 +70,7 @@ func (attr *PipHelper) script(_ Toolchain, name string) string { if attr.EnterSource { script += "cd '/usr/src/" + name + "'\n" } - if !attr.SkipCheck { + if !attr.SkipCheck && t.opts&OptSkipCheck == 0 { if attr.Check == "" { // some test suites fall apart when ran out-of-tree script += "(cd '" + sourcePath.String() + "' && pytest)\n"