File tree Expand file tree Collapse file tree
app/src/lib/core/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,11 +94,12 @@ RUN gemini --version`
9494// COMPLEXITY: O(1)
9595const renderDockerfileRtk = ( ) : string =>
9696 `# Tooling: RTK (Rust Token Killer)
97+ ARG RTK_VERSION=v0.39.0
9798RUN set -eu; \
9899 curl -fsSL --retry 5 --retry-all-errors --retry-delay 2 \
99100 https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh \
100101 -o /tmp/rtk-install.sh; \
101- RTK_INSTALL_DIR=/usr/local/bin sh /tmp/rtk-install.sh; \
102+ RTK_VERSION="\${RTK_VERSION}" RTK_INSTALL_DIR=/usr/local/bin sh /tmp/rtk-install.sh; \
102103 rm -f /tmp/rtk-install.sh; \
103104 rtk --version; \
104105 rtk gain >/dev/null 2>&1 || true`
Original file line number Diff line number Diff line change @@ -94,11 +94,12 @@ RUN gemini --version`
9494// COMPLEXITY: O(1)
9595const renderDockerfileRtk = ( ) : string =>
9696 `# Tooling: RTK (Rust Token Killer)
97+ ARG RTK_VERSION=v0.39.0
9798RUN set -eu; \
9899 curl -fsSL --retry 5 --retry-all-errors --retry-delay 2 \
99100 https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh \
100101 -o /tmp/rtk-install.sh; \
101- RTK_INSTALL_DIR=/usr/local/bin sh /tmp/rtk-install.sh; \
102+ RTK_VERSION="\${RTK_VERSION}" RTK_INSTALL_DIR=/usr/local/bin sh /tmp/rtk-install.sh; \
102103 rm -f /tmp/rtk-install.sh; \
103104 rtk --version; \
104105 rtk gain >/dev/null 2>&1 || true`
Original file line number Diff line number Diff line change @@ -66,8 +66,9 @@ describe("renderDockerfile", () => {
6666 "glab --version" ,
6767 "ncurses-term jq" ,
6868 "# Tooling: RTK (Rust Token Killer)" ,
69+ "ARG RTK_VERSION=v0.39.0" ,
6970 "https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh" ,
70- " RTK_INSTALL_DIR=/usr/local/bin sh /tmp/rtk-install.sh" ,
71+ 'RTK_VERSION="${RTK_VERSION}" RTK_INSTALL_DIR=/usr/local/bin sh /tmp/rtk-install.sh' ,
7172 "rtk --version" ,
7273 "rtk gain >/dev/null 2>&1 || true" ,
7374 'ARG DOCKER_GIT_SESSION_SYNC_PACKAGE="@prover-coder-ai/docker-git-session-sync@latest"' ,
You can’t perform that action at this time.
0 commit comments