Skip to content
Stephan Kulla edited this page Jun 23, 2023 · 16 revisions

How to update dependencies?

Variant 1: Do it manually

yarn dependencies

Use yarn upgrade-interactively and update the dependency or a list of dependencies. Run all checks (e.g. via yarn check:all) and fix errors which occur. In case of updates in the major version have a look at the changelog of the dependency where breaking changes are defined.

It is recommended to make smaller commits / PRs with only some updates instead of always updating everything. Merge the PRs into main when some updates succeed and do not break the CI.

Rust

Variant 2: Set up and use dependa-bot

See https://docs.github.com/en/code-security/dependabot/working-with-dependabot, set it up in the repository and merge the PRs. In case the CI breaks, fix the error in the particular pull request.

How to update the version of Node.JS / Rust / Python

We manage asdf for our tool chain. Here you can also update the used programming language. Example with Node.JS:

# List all versions of Node.JS
asdf list all nodejs

# Install version X
asdf install nodejs X

In case the repository has a .tool-versions file make sure that you change it accordingly (e.g. via asdf local nodejs X). After installing the new version make sure that you make the appropriate changes in the repository:

How to update yarn?

See https://yarnpkg.com/cli/set/version

Clone this wiki locally