Skip to content

Commit

Permalink
Fix not able to open workspace with nightly code (#20029)
Browse files Browse the repository at this point in the history
* Build latest image

* debug

* Fix restart workspace editor version

* revert nightly job

* fixup

* Revert "debug"

This reverts commit be496bc.
  • Loading branch information
mustard-mh authored Jul 15, 2024
1 parent 4bccf52 commit e37bd00
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: |
export LEEWAY_WORKSPACE_ROOT=$GITHUB_WORKSPACE
codeHeadCommit=$(curl -H 'Accept: application/vnd.github.VERSION.sha' https://api.github.com/repos/gitpod-io/openvscode-server/commits/gp-code/release/1.91)
codeHeadCommit=$(curl -H 'Accept: application/vnd.github.VERSION.sha' https://api.github.com/repos/gitpod-io/openvscode-server/commits/gp-code/main)
codeVersion=$(curl https://raw.githubusercontent.com/gitpod-io/openvscode-server/$codeHeadCommit/package.json | jq .version)
imageRepoBase=${{ github.ref == 'refs/heads/main' && 'eu.gcr.io/gitpod-core-dev/build' || 'eu.gcr.io/gitpod-dev-artifact/build' }}
cd components/ide/code
Expand Down
5 changes: 4 additions & 1 deletion components/server/src/workspace/workspace-starter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,10 @@ export class WorkspaceStarter {
ideSettings = {
...ideSettings,
defaultIde: ideConfig.ide,
useLatestVersion: !!ideConfig.useLatest,
useLatestVersion:
ideSettings?.useLatestVersion ??
user.additionalData?.ideSettings?.useLatestVersion ??
!!ideConfig.useLatest,
};
}
}
Expand Down
6 changes: 6 additions & 0 deletions install/installer/pkg/components/blobserve/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ func configmap(ctx *common.RenderContext) ([]runtime.Object, error) {
InlineStatic: []blobserve_config.InlineReplacement{{
Search: "{{WORKBENCH_WEB_BASE_URL}}",
Replacement: "${ide}",
}, {
Search: "{{WORKBENCH_NLS_FALLBACK_URL}}",
Replacement: "${ide}/out/nls.messages.js",
}, {
Search: "{{WORKBENCH_NLS_URL}}",
Replacement: "${ide}/out/nls.messages.js",
}, {
Search: "/_supervisor/frontend",
Replacement: "${supervisor}",
Expand Down

0 comments on commit e37bd00

Please sign in to comment.