Repository navigation
fix(flashlight): PRESTAFLOW_PS_VERSION tirée du tag d'image, pas le tag lui-même - #12
Merged
Merged
Conversation
…g itself ps-version is a Flashlight image tag (8.2.8-nginx, latest…). It was passed as is to the library, which only parses a bare version and failed the run with "Error with version 8.2.8-nginx". The version is now taken from the tag, read from the shop's AppKernel for a tag without one, and left unset (with a warning) when neither tells. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…'s PS_VERSION latest (9.2.1) gave no version from AppKernel. Flashlight images declare PS_VERSION in their environment: read it first, AppKernel as a fallback. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ps-versionest un tag d'image Flashlight (8.2.8-nginx,latest…). L'action le passait tel quel à la librairie enPRESTAFLOW_PS_VERSION. Or la librairie ne lit qu'une version nue : avec8.2.8-nginx, le run s'arrêtait surError with version 8.2.8-nginx, sans exécuter aucun test. Une version 8.2.8 n'est publiée qu'avec un suffixe (8.2.8-nginx,8.2.8-8.1-nginx…), donc le problème touchait toute la 8.2.x récente.Changements
psVersionFromImageTag()extrait la version en tête du tag :8.2.8-nginxdonne8.2.8,1.7.8.11-7.4-fpm-alpine-nginxdonne1.7.8.11.latest,nightly…), l'action lit la version dans la boutique : d'abord la variablePS_VERSIONde l'image (latest= 9.2.1), sinonapp/AppKernel.php.PRESTAFLOW_PS_VERSIONn'est pas écrite (le.envdu projet ou leenv:de l'étape s'appliquent), et un avertissement explique quoi faire.Flashlight ready at … (image 8.2.8-nginx, PS 8.2.8).action.ymlet README mis à jour,dist/reconstruit.Vérifié
npm run lintOK ;npm test: 128 tests OK (tags, lecture dePS_VERSION, repli surAppKernel, version inconnue).8.2.8-nginx8.2.8-nginx→ Error with version, 0 test8.2.8-nginx1.7.8.11latestPRESTAFLOW_THEME=hummingbirdSur
latestavec le thème par défaut (classic), la connexion réussit (« John DOE » est affiché), maisisLoggedIn()cherche le lien de déconnexion de Classic. PS 9.2 installe Hummingbird par défaut : c'est un réglage du projet, pas un sujet de l'action.🤖 Generated with Claude Code