Skip to content

Fix version checks

Fix the versions checks which lead to the pipeline errors:

Regex didn't match: '<script src="/static/translucent/translucent.js\\?v=\\d+\\.\\d+\\.\\d+[^"]*" type="module"></script>' not found in '\n<!doctype html>\n<html lang="en" class="theme-default mode-light">\n<head>\n  <title>Not Found</title>\n    <link href="/static/translucent/assets/style/base.css?v=0.1.dev50+g0ba106e" rel="stylesheet"/>\n    <link href="/static/translucent/assets/themes/default.css?v=0.1.dev50+g0ba106e" rel="stylesheet"/>\n    <script src="/static/translucent/translucent.js?v=0.1.dev50+g0ba106e" type="module"></script>\n</head>\n<body>\n  <h1>Not Found</h1><p>The requested resource was not found on this server.</p>\n</body>\n</html>\n'

When building a dev version (aka non-tag version) locally, the SCM version looks something likes this:

1.17.5.dev54+gc6c9c48.d20220301

However, in the pipeline it looks like this:

0.1.dev50+g0ba106e

As you can see, locally it is "correct" with 3 digits before the dev ([digit].[digit].[digit].dev), for which the regex matches.
However, in the pipeline the version is only prefixxed with 2 digits ([digit].[digit].dev) before the dev. This means the regex will fail.

We should fix that!

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information