From e331139e481fe1d772a77d7cfabd11e10d70590d Mon Sep 17 00:00:00 2001 From: Aminur Rahman Date: Wed, 11 Oct 2023 18:27:49 +0000 Subject: [PATCH 1/2] Update gitpod config --- .gitpod.yml | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index 73bdb47..beb9cee 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -9,8 +9,8 @@ tasks: printf "\033[3J\033c\033[3J" # Install clippy and rustfmt - rustup component add clippy --toolchain nightly-x86_64-unknown-linux-gnu - rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu + rustup component add clippy --toolchain nightly-2023-06-27 + rustup component add rustfmt --toolchain nightly-2023-06-27 # Restore ProdBotConfig.toml if test -n "${PROD_DISCORD_BOT_CONFIG_ENCODED:-}"; then { @@ -50,28 +50,10 @@ tasks: # command: | # # Fully cleanup terminal # printf "\033[3J\033c\033[3J" - # # Start server # meilisearch --no-analytics --master-key "${MEILISEARCH_API_KEY}" --env development --http-addr 0.0.0.0:7700 --db-path ./data.ms - vscode: extensions: - rust-lang.rust-analyzer + - tamasfe.even-better-toml -github: - prebuilds: - # enable for the default branch (defaults to true) - master: true - # enable for all branches in this repo (defaults to false) - branches: true - # enable for pull requests coming from this repo (defaults to true) - pullRequests: true - # enable for pull requests coming from forks (defaults to false) - # DANGER: do not enable!! - pullRequestsFromForks: false - # add a check to pull requests (defaults to true) - addCheck: true - # add a "Review in Gitpod" button as a comment to pull requests (defaults to false) - addComment: true - # add a "Review in Gitpod" button to the pull request's description (defaults to false) - addBadge: true From 07e102b8a88fe30b354c16501c09456f1f33b0ad Mon Sep 17 00:00:00 2001 From: Aminur Rahman Date: Wed, 11 Oct 2023 18:36:14 +0000 Subject: [PATCH 2/2] Workaround for prebuild ts --- .gitpod.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitpod.yml b/.gitpod.yml index beb9cee..04969d4 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -3,8 +3,16 @@ image: tasks: - name: Project build (cache) and run instructions - init: cargo build + init: | + cargo build + + # workaround for https://github.com/gitpod-io/gitpod/issues/524 + find target -exec stat --format='%.Y %n' {} + > /workspace/.ts + command: | + # workaround for https://github.com/gitpod-io/gitpod/issues/524 + while read -r ts file; do touch -d "@${ts}" "${file}"; done < /workspace/.ts + # Fully cleanup terminal printf "\033[3J\033c\033[3J"