Skip to content

Commit fdcf80e

Browse files
authored
Merge branch 'main' into integration-tests-import-local-python-libs
2 parents 791ff0a + ec509bf commit fdcf80e

File tree

4 files changed

+3016
-2722
lines changed

4 files changed

+3016
-2722
lines changed

components/package-template/src/sbin/.common-env.sh

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,28 @@ CLP_PWD_HOST="$(pwd 2>/dev/null || echo "")"
3131
export CLP_PWD_HOST
3232

3333
if [[ -z "${CLP_DOCKER_PLUGIN_DIR:-}" ]]; then
34-
for compose_plugin_dir in \
35-
"$HOME/.docker/cli-plugins" \
36-
"/mnt/wsl/docker-desktop/cli-tools/usr/local/lib/docker/cli-plugins" \
37-
"/usr/local/lib/docker/cli-plugins" \
38-
"/usr/libexec/docker/cli-plugins"; do
39-
40-
compose_plugin_path="$compose_plugin_dir/docker-compose"
41-
if [[ -f "$compose_plugin_path" ]]; then
42-
export CLP_DOCKER_PLUGIN_DIR="$compose_plugin_dir"
43-
break
44-
fi
45-
done
46-
if [[ -z "${CLP_DOCKER_PLUGIN_DIR:-}" ]]; then
47-
echo >&2 "Warning: Docker plugin directory not found;" \
48-
"Docker Compose may not work inside container."
34+
compose_plugin_path="$(docker info \
35+
--format '{{range .ClientInfo.Plugins}}{{if eq .Name "compose"}}{{.Path}}{{end}}{{end}}' \
36+
2>/dev/null)"
37+
38+
if [[ -z "$compose_plugin_path" || ! -f "$compose_plugin_path" ]]; then
39+
echo >&2 "Error: Docker Compose plugin not found via 'docker info'."
40+
return 1
41+
fi
42+
43+
resolved_plugin_path="$(readlink -f "$compose_plugin_path" 2>/dev/null || true)"
44+
if [[ -z "$resolved_plugin_path" ]]; then
45+
echo >&2 "Error: Failed to resolve Docker Compose plugin's real path."
46+
return 1
4947
fi
48+
49+
plugin_dir="$(dirname "$resolved_plugin_path")"
50+
if [[ -z "$plugin_dir" || "$plugin_dir" == "." || ! -d "$plugin_dir" ]]; then
51+
echo >&2 "Error: Failed to resolve Docker Compose plugin directory."
52+
return 1
53+
fi
54+
55+
export CLP_DOCKER_PLUGIN_DIR="$plugin_dir"
5056
fi
5157

5258
if [[ -z "${CLP_DOCKER_SOCK_PATH:-}" ]]; then
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
11
grammar Sql;
22

33
import SqlBase;
4+
5+
selectItemList
6+
: selectItem (',' selectItem)*
7+
;
8+
9+
standaloneSelectItemList
10+
: selectItemList EOF
11+
;
12+
13+
standaloneBooleanExpression
14+
: booleanExpression EOF
15+
;
16+
17+
sortItemList
18+
: sortItem (',' sortItem)*
19+
;
20+
21+
standaloneSortItemList
22+
: sortItemList EOF
23+
;

components/webui/client/src/sql-parser/generated/SqlLexer.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ export default class SqlLexer extends Lexer {
273273
public static readonly EOF = Token.EOF;
274274

275275
public static readonly channelNames: string[] = [ "DEFAULT_TOKEN_CHANNEL", "HIDDEN" ];
276-
public static readonly literalNames: (string | null)[] = [ null, "'.'",
277-
"'('", "')'",
278-
"','", "'?'",
276+
public static readonly literalNames: (string | null)[] = [ null, "','",
277+
"'.'", "'('",
278+
"')'", "'?'",
279279
"'->'", "'['",
280280
"']'", "'=>'",
281281
"'ADD'", "'ADMIN'",
@@ -988,8 +988,8 @@ export default class SqlLexer extends Lexer {
988988
491,2212,1,0,0,0,493,2216,1,0,0,0,495,2226,1,0,0,0,497,2234,1,0,0,0,499,
989989
2245,1,0,0,0,501,2256,1,0,0,0,503,2279,1,0,0,0,505,2307,1,0,0,0,507,2325,
990990
1,0,0,0,509,2334,1,0,0,0,511,2336,1,0,0,0,513,2338,1,0,0,0,515,2355,1,0,
991-
0,0,517,2370,1,0,0,0,519,2376,1,0,0,0,521,522,5,46,0,0,522,2,1,0,0,0,523,
992-
524,5,40,0,0,524,4,1,0,0,0,525,526,5,41,0,0,526,6,1,0,0,0,527,528,5,44,
991+
0,0,517,2370,1,0,0,0,519,2376,1,0,0,0,521,522,5,44,0,0,522,2,1,0,0,0,523,
992+
524,5,46,0,0,524,4,1,0,0,0,525,526,5,40,0,0,526,6,1,0,0,0,527,528,5,41,
993993
0,0,528,8,1,0,0,0,529,530,5,63,0,0,530,10,1,0,0,0,531,532,5,45,0,0,532,
994994
533,5,62,0,0,533,12,1,0,0,0,534,535,5,91,0,0,535,14,1,0,0,0,536,537,5,93,
995995
0,0,537,16,1,0,0,0,538,539,5,61,0,0,539,540,5,62,0,0,540,18,1,0,0,0,541,

0 commit comments

Comments
 (0)