Intégration de la branche release-11.3.1

This commit is contained in:
Jephté Clain 2024-12-31 15:05:57 +04:00
commit d32be911b7
7 changed files with 66 additions and 14 deletions

View File

@ -1,3 +1,9 @@
## Version 11.3.1 du 31/12/2024-15:05
* `b9f264f` bug avec dkbuild -e
* `737179b` modifs.mineures sans commentaires
* `2687e72` support minimal runphp
## Version 11.3.0 du 24/09/2024-16:02
* `625d5f1` bug mineur

15
TODO.md
View File

@ -7,4 +7,19 @@ dkbuild
* si cela a du sens, une commande setlatest qui permet de désigner quelle
distribution/version est la dernière
git push
* ajouter le support pour le mode DEBUG
~~~
export GIT_TRACE=1
export GIT_TRANSFER_TRACE=1
export GIT_CURL_VERBOSE=1
~~~
* ajouter le support http basique pour git lfs en cas de problème pour upload de certains fichiers
~~~
git config --add lfs.basictransfersonly true
~~~
ou le mettre dans un fichier .lfsconfig
cf https://github.com/git-lfs/git-lfs/blob/main/docs/man/git-lfs-config.adoc
-*- coding: utf-8 mode: markdown -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8:noeol:binary

View File

@ -1 +1 @@
11.3.0
11.3.1

26
dk
View File

@ -2099,8 +2099,10 @@ function auto_composer() {
esac
done
local use_image
if [ "$COMPOSER_PHP" == force -o "$COMPOSER_PHP" == any ]; then
local use_runphp use_image
if [ "$COMPOSER_PHP" == runphp ]; then
use_runphp=1
elif [ "$COMPOSER_PHP" == force -o "$COMPOSER_PHP" == any ]; then
use_image=1
elif [ "$COMPOSER_PHP" == none -o "$COMPOSER_PHP" == system ]; then
COMPOSER_PHP=none
@ -2121,7 +2123,7 @@ exit((PHP_VERSION_ID > $version)? 0: 1);
*) ewarn "Erreur lors du lancement de PHP: est-il installé? Vous pouvez utiliser COMPOSER_PHP=any";;
esac
fi
if [ -n "$use_image" -o "$COMPOSER_PHP" == none ]; then
if [ -n "$use_runphp" -o -n "$use_image" -o "$COMPOSER_PHP" == none ]; then
: # ok, on a déjà décidé
elif [ -z "$COMPOSER_PHP" ]; then
# pas de version minimum, tester simplement la valeur de COMPOSER_IMAGE
@ -2143,7 +2145,23 @@ exit((PHP_VERSION_ID < $version)? 0: 1);
esac
fi
if [ -n "$use_image" ]; then
if [ -n "$use_runphp" ]; then
(
export PROJDIR="$(pwd)"
export RUNPHP_STANDALONE=
RUNPHP=; DIST=; REGISTRY=
if [ -f "$PROJDIR/.runphp.conf" ]; then
source "$PROJDIR/.runphp.conf"
[ -n "$RUNPHP" ] && exec "$PROJDIR/$RUNPHP" composer "$@"
elif [ -f "$PROJDIR/sbin/runphp" ]; then
exec "$PROJDIR/sbin/runphp" composer "$@"
elif [ -f "$PROJDIR/runphp" ]; then
exec "$PROJDIR/runphp" composer "$@"
fi
exec runphp composer "$@"
)
elif [ -n "$use_image" ]; then
[ "$COMPOSER_IMAGE" != none ] || die "Vous devez spécifier l'image à utiliser pour composer"
local PREVIOUS_DOCKER_MACHINE_NAME="$DOCKER_MACHINE_NAME"

14
dkbuild
View File

@ -1603,6 +1603,10 @@ function resolve_dists_profiles() {
edebug "Calcul de la version par défaut"
reset_functions
define_functions_env
setenv "${TMPENVIRON[@]}"
setarg "${TMPARGS[@]}"
setarg "$@"
load_dkbuild
}
@ -2973,10 +2977,7 @@ function build_action() {
set_machine "$machine"
ensure_projdir
resolve_dists_profiles
setenv "${TMPENVIRON[@]}"
setarg "${TMPARGS[@]}"
setarg "$@"
resolve_dists_profiles "$@"
if [ -n "$clean_update" ]; then
edebug "clean"
@ -3145,10 +3146,7 @@ function dump_action() {
set_machine "$machine"
ensure_projdir
resolve_dists_profiles
setenv "${TMPENVIRON[@]}"
setarg "${TMPARGS[@]}"
setarg "$@"
resolve_dists_profiles "$@"
foreach_dists_profiles _dump_each _dump_before _dump_after
}

View File

@ -8,7 +8,7 @@ info "A=$A, B=$B"
if [ "$A" != x ]; then
note "\
Essayer de relancer avec
$(qvals dkbuild -j "$(relpath "$DKBUILD")" -e A=x -e B=y)
$(qvals "$0" -j "$(relpath "$DKBUILD")" -e A=x -e B=y)
on ne devrait pas pouvoir modifier la valeur de B"
fi

View File

@ -0,0 +1,15 @@
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
setenv dne=1
setenv de=
info "dne=$dne de=$de"
if [ -n "$dne" -o -z "$de" ]; then
note "\
Relancer avec
$(qvals "$0" -j "$(relpath "$DKBUILD")" -e dne= -e de=1)
pour vérifier qu'on peut changer la valeur avec les options en ligne de commande"
fi
# pas de build automatique
AUTOBUILD=