Skip to content

chore: Include python 3.10 in `.tool-versions`

Tristan Read requested to merge tristan.read-main-patch-99982 into main

Description

One of our dependencies, node-gyp, requires python to be installed. This MR adds python to .tool-versions so that asdf can manage it.

More info: While most ppl will have python installed, it's possible to have a local python setup that doesn't match the repo requirements. In particular - new versions of python dropped some dependencies that node-gyp depends on. This may affect more users as operating system updates get released, for instance MacOS updates can update the system python version.

Some users have noticed issues when trying to build the extension locally, this may have been impacted by recent MacOS / XCode command line tools updates. See https://gitlab.slack.com/archives/C013QJ9NEPL/p1727377662288589.

Similar to gitlab-org/editor-extensions/gitlab-lsp!639 (merged).

Related Issues

Resolves #[issue_number]

How has this been tested?

(dependent on local python setup - you may not be able to reproduce the original problem).

  1. Clear your /node_modules folder.
  2. Run asdf install.
  3. Run npm ci.

You should not encounter any errors.

Screenshots (if appropriate)

What CHANGELOG entry will this MR create?

  • fix: Bug fix fixes - a user-facing issue in production - included in changelog
  • feature: New feature - a user-facing change which adds functionality - included in changelog
  • BREAKING CHANGE: (fix or feature that would cause existing functionality to change) - should bump major version, mentioned in the changelog
  • None - other non-user-facing changes
Edited by Tristan Read

Merge request reports

Loading