Skip to content

Commit e759747

Browse files
committed
[build] update leeway
1 parent 612b919 commit e759747

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

.gitpod.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,9 @@ tasks:
5757
(cd install/installer && make deps)
5858
exit 0
5959
- name: Java
60-
command: |
61-
if [ -z "$RUN_GRADLE_TASK" ]; then
62-
read -r -p "Press enter to continue Java gradle task"
63-
fi
64-
leeway exec --package components/supervisor-api/java:lib --package components/gitpod-protocol/java:lib -- ./gradlew build
65-
leeway exec --package components/ide/jetbrains/backend-plugin:plugin-latest --package components/ide/jetbrains/gateway-plugin:publish-latest --parallel -- ./gradlew buildPlugin
60+
init: |
61+
leeway exec --package components/supervisor-api/java:lib --package components/gitpod-protocol/java:lib --cache-key gradle_build -- ./gradlew build
62+
leeway exec --package components/ide/jetbrains/backend-plugin:plugin-latest --package components/ide/jetbrains/gateway-plugin:publish-latest --parallel --cache-key gradle_buildPlugin -- ./gradlew buildPlugin
6663
- name: TypeScript
6764
init: yarn --network-timeout 100000 && yarn build
6865
- name: Go

components/server/src/workspace/gitpod-server-impl.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ import { v4 as uuidv4, validate as uuidValidate } from "uuid";
9999
import { Disposable, CancellationToken } from "vscode-jsonrpc";
100100
import { IAnalyticsWriter } from "@gitpod/gitpod-protocol/lib/analytics";
101101
import { AuthProviderService } from "../auth/auth-provider-service";
102-
import { HostContextProvider } from "../auth/host-context-provider";
103102
import { GuardedResource, ResourceAccessGuard, ResourceAccessOp } from "../auth/resource-access";
104103
import { Config } from "../config";
105104
import { NotFoundError, UnauthorizedError } from "../errors";
@@ -179,7 +178,6 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
179178
@inject(Config) private readonly config: Config,
180179
@inject(TracedWorkspaceDB) private readonly workspaceDb: DBWithTracing<WorkspaceDB>,
181180
@inject(ContextParser) private contextParser: ContextParser,
182-
@inject(HostContextProvider) private readonly hostContextProvider: HostContextProvider,
183181

184182
@inject(PrebuildManager) private readonly prebuildManager: PrebuildManager,
185183
@inject(IncrementalWorkspaceService) private readonly incrementalPrebuildsService: IncrementalWorkspaceService,

dev/image/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ RUN cd /usr/bin && curl -fsSL https://github.com/cert-manager/cert-manager/relea
4848
RUN cd /usr/bin && curl -fsSL https://github.com/praetorian-inc/gokart/releases/download/v0.4.0/gokart_0.4.0_linux_x86_64.tar.gz | tar xzv --no-anchored gokart
4949

5050
# leeway
51-
ARG LEEWAY_VERSION=0.7.9
51+
ARG LEEWAY_VERSION=0.8.0
5252
ENV LEEWAY_MAX_PROVENANCE_BUNDLE_SIZE=8388608
5353
ENV LEEWAY_WORKSPACE_ROOT=/workspace/gitpod
5454
ENV LEEWAY_REMOTE_CACHE_BUCKET=gitpod-core-leeway-cache-branch
55-
ENV LEEWAY_CACHE_DIR=/var/tmp/cache
56-
ENV LEEWAY_BUILD_DIR=/var/tmp/build
55+
ENV LEEWAY_CACHE_DIR=/workspace/.leeway/cache
56+
ENV LEEWAY_BUILD_DIR=/workspace/.leeway/build
5757
RUN cd /usr/bin && curl -fsSL https://github.com/gitpod-io/leeway/releases/download/v${LEEWAY_VERSION}/leeway_${LEEWAY_VERSION}_Linux_x86_64.tar.gz | tar xz
5858

5959
# evans (gRPC client)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"typescript": "~4.4.4"
1313
},
1414
"scripts": {
15-
"build": "leeway exec --filter-type yarn --components -- yarn build",
15+
"build": "leeway exec --filter-type yarn --components --cache-key yarn_build -- yarn build",
1616
"watch": "leeway exec --package components:all --transitive-dependencies --filter-type yarn --components --parallel -- tsc -w --preserveWatchOutput",
1717
"clean": "leeway exec --filter-type yarn --components -- yarn clean && rm -rf node_modules"
1818
},

0 commit comments

Comments
 (0)