-
Notifications
You must be signed in to change notification settings - Fork 469
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Temporary fix TERM issue with rules_uv
see theoremlp/rules_uv#167 Change-Id: I2758c56e2e7009d0ba8d1b1383e4cbeda565f5db
- Loading branch information
1 parent
6b6f5ab
commit 3ed1e01
Showing
20 changed files
with
89 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From 2f9c114e1fd7fc7aff2cb7fe58187c127a3d1c4f Mon Sep 17 00:00:00 2001 | ||
From: Timotheus Bachinger <Timotheus.bachinger@checkmk.com> | ||
Date: Sat, 30 Nov 2024 03:43:30 +0100 | ||
Subject: [PATCH 1/1] Enable create_venv for non-interactive runs (#167) | ||
|
||
When using `create_venv` in non-interactive docker container runs, we | ||
would get: | ||
``` | ||
tput: No value for $TERM and no -T specified | ||
``` | ||
This sets `TERM` in case it isn't and enables such runs. | ||
--- | ||
uv/private/create_venv.sh | 4 ++++ | ||
1 file changed, 4 insertions(+) | ||
|
||
diff --git a/uv/private/create_venv.sh b/uv/private/create_venv.sh | ||
index 10edaf4..b88b2d4 100644 | ||
--- a/uv/private/create_venv.sh | ||
+++ b/uv/private/create_venv.sh | ||
@@ -8,6 +8,10 @@ REQUIREMENTS_TXT="{{requirements_txt}}" | ||
|
||
PYTHON="$(realpath "$RESOLVED_PYTHON")" | ||
|
||
+if [ -z ${TERM} ] || [ ${TERM} == "dumb" ]; then | ||
+ export TERM=xterm | ||
+fi | ||
+ | ||
bold="$(tput bold)" | ||
normal="$(tput sgr0)" | ||
|
||
-- | ||
2.43.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh TERM=xterm ./run --clean --all", | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh ./run --clean --all", | ||
"maintainers": ["team-nile@checkmk.com"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh TERM=xterm ./run --clean --all", | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh ./run --clean --all", | ||
"maintainers": ["team-main@checkmk.com"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh TERM=xterm ./run --clean --all", | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh ./run --clean --all", | ||
"maintainers": ["mathias.laurin@checkmk.com"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh TERM=xterm ./run --clean --all", | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh ./run --clean --all", | ||
"maintainers": ["team-security@checkmk.com"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh TERM=xterm ./run --clean --all", | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh ./run --clean --all", | ||
"maintainers": ["ronny.bruska@checkmk.com", "christopher.krause@checkmk.com"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh TERM=xterm ./run --clean --all", | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh ./run --clean --all", | ||
"maintainers": ["team-nile@checkmk.com"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh TERM=xterm ./run --clean --all", | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh ./run --clean --all", | ||
"maintainers": ["team-main@checkmk.com"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh TERM=xterm ./run --clean --all", | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh ./run --clean --all", | ||
"maintainers": ["team-nile@checkmk.com"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh TERM=xterm ./run --clean --all", | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh ./run --clean --all", | ||
"maintainers": ["team-nile@checkmk.com"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh TERM=xterm ./run --clean --all", | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh ./run --clean --all", | ||
"maintainers": ["team-nile@checkmk.com"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh TERM=xterm ./run --clean --all", | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh ./run --clean --all", | ||
"maintainers": ["team-nile@checkmk.com"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh TERM=xterm ./run --clean --all", | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh ./run --clean --all", | ||
"maintainers": ["team-prj-engelbart@checkmk.com"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh TERM=xterm ./run --clean --all", | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh ./run --clean --all", | ||
"maintainers": ["lm@checkmk.com"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh TERM=xterm ./run --clean --all", | ||
"command_line": "BAZEL_CMD=../../scripts/run-bazel.sh ./run --clean --all", | ||
"maintainers": ["team-prj-engelbart@checkmk.com"], | ||
"dependencies": [".werks/"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters