Update
I finally managed to get the CI stuff to run but ending up with failures in the frontend workflow during tests claiming different hashes.
One initial issue was having yarn.lock
files excluded from the commits by a user level ~/.gitignore
file trying to exclude *.lock
files for macOS purposes.
Removing this helped to fix missing yarn.lock entries.
Next nightmare
I had installed yarn
3.7.0 locally but the test logs printed 3.2.3.
Reinstalling yarn
, changing to lates yarn
(as suggested in a forum 4.0.0-rc.25
) did not help during complete recreation from blank folders using cookiecutter-plone-starter
and blank fresh github repo.
The version 3.2.3
came from the cookiecutter-plone-starter
.
After reinstalling and pinning yarn
to 3.2.3
this helped to fix the hash issues:
yarn set version 3.2.3
Test:
yarn -v
# output
3.2.3
I am finally almost there except a failure during an i18n test:
1s
Run make i18n-ci
make i18n-ci
shell: /usr/bin/bash -e {0}
env:
IMAGE_NAME_PREFIX: ghcr.io/acsr-industrialdesign/aeme
IMAGE_NAME_SUFFIX: frontend
NODE_VERSION: 20.x
+ yarn i18n
Extracting messages from source files...
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Synchronizing messages to pot file...
Synchronizing messages to po files...
Generating the language JSON files...
Merging @plone/volto-slate locales for de
Merging @eeacms/volto-accordion-block locales for de
Merging @kitconcept/volto-slider-block locales for de
Merging @eeacms/volto-matomo locales for de
Merging @plone/volto-slate locales for en
Merging @eeacms/volto-accordion-block locales for en
Merging @kitconcept/volto-slider-block locales for en
Merging @eeacms/volto-matomo locales for en
Merging @eeacms/volto-accordion-block locales for es
Merging @kitconcept/volto-slider-block locales for es
Merging @eeacms/volto-accordion-block locales for it
Merging @eeacms/volto-matomo locales for it
Merging @kitconcept/volto-slider-block locales for nl
Merging @kitconcept/volto-slider-block locales for pt_BR
Merging @eeacms/volto-accordion-block locales for ro
Merging @eeacms/volto-matomo locales for ro
done!
+ git diff '-G^[^\"POT]' --exit-code
diff --git a/frontend/locales/de/LC_MESSAGES/volto.po b/frontend/locales/de/LC_MESSAGES/volto.po
index 49d2e20..f6adc0d 100644
--- a/frontend/locales/de/LC_MESSAGES/volto.po
+++ b/frontend/locales/de/LC_MESSAGES/volto.po
@@ -1,4 +1,4 @@
-# Translation of volto.pot to German
+#. Translation of volto.pot to German
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
diff --git a/frontend/locales/eu/LC_MESSAGES/volto.po b/frontend/locales/eu/LC_MESSAGES/volto.po
index 984adca..2b3cffc 100644
--- a/frontend/locales/eu/LC_MESSAGES/volto.po
+++ b/frontend/locales/eu/LC_MESSAGES/volto.po
@@ -1,4 +1,4 @@
-# Translation of volto.pot to EU
+#. Translation of volto.pot to EU
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
diff --git a/frontend/locales/fr/LC_MESSAGES/volto.po b/frontend/locales/fr/LC_MESSAGES/volto.po
index f6050e4..246046b 100644
--- a/frontend/locales/fr/LC_MESSAGES/volto.po
+++ b/frontend/locales/fr/LC_MESSAGES/volto.po
@@ -1,4 +1,4 @@
-# Translation of volto.pot to French
+#. Translation of volto.pot to French
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
make: *** [Makefile:79: i18n-ci] Error 1
Error: Process completed with exit code 2.
Any ideas where these diff failures are coming from?