aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-06-16 22:06:34 +0900
committerOphestra <cat@gensokyo.uk>2026-06-16 22:06:34 +0900
commit5ee66a86eea424f05ee88baba3c5c81d820555c7 (patch)
tree53bdc80a26c012445f4735cd557a16a8b31681bf /internal
parentd75b8b6e320338a99d8e9b894951e725cfa85e27 (diff)
internal/rosa/python: respect toolchain opts
This was missed when migrating the pip helper. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/rosa/python.go4
1 files 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"