Code DS antérieur au tag "2021-04-02-01" : l'installation des dépendances Ruby ne fonctionne plus (mimemagic 0.3.5)
Avec le code DS antérieur au tag 2021-04-02-01
, l'installation
des dépendances Ruby ne fonctionne plus à cause de mimemagic 0.3.5
.
- Cette librairie
mimemagic 0.3.5
n'est plus disponible à cause d'un problème de licence. - C'est une dépendance utilisée par Rails et par d'autres dépendances nécessaire à DS.
- Pour tout le code DS antérieur au tag
2021-04-02-01
, l'installation des dépendances Ruby échoue. - C'est corrigé à partir du tag
2021-04-02-01
de DS.
Your bundle is locked to mimemagic (0.3.5), but that version could not be found
Actuellement
- Erreur identique (
mimemagic 0.3.5
) et bloquante à l'installation des dépendances Ruby :- pour la CI du module de composant Puppet de DS (v2.0.1) ---> CI en erreur ---> https://gitlab.adullact.net/demarches-simplifiees/puppet-demarchessimplifiees/-/issues/71
- pour la CI du module de profil Puppet de DS ---> CI en erreur
- pour le Vagrant démo (basé sur le module de composant Puppet DS) ---> ne fonctionne pas --> https://gitlab.adullact.net/demarches-simplifiees/vagrant-demarches-simplifiees-demo/-/issues/6
- pour le Vagrant DEV avec un vcsref DS
<
au tag2021-04-02-01
---> ne fonctionne pas --> vagrant-dev-demarches-simplifiees#26 (closed)
- Aucune erreur à l'installation des dépendances Ruby :
- pour le Vagrant DEV avec un vcsref DS
>=
au tag2021-04-02-01
---> tout fonctionne --> vagrant-dev-demarches-simplifiees#26 (closed) - pour le Vagrant démo (basé sur le module Puppet DS) ---> tout fonctionne --> https://gitlab.adullact.net/demarches-simplifiees/vagrant-demarches-simplifiees-demo/-/issues/6
- avec un vcsref DS
>=
au tag2021-04-02-01
- avec le module Puppet DS calé sur la branche master
- avec un vcsref DS
- pour le Vagrant DEV avec un vcsref DS
Log
<
au tag 2021-04-02-01
Log du Vagrant DEV avec un vcsref DS Fetching gem metadata from https://rubygems.org/......
Your bundle is locked to mimemagic (0.3.5), but that version could not be found
in any of the sources listed in your Gemfile.
If you haven't changed sources, that means the author of mimemagic (0.3.5) has removed it.
You'll need to update your bundle to a version other than mimemagic (0.3.5)
that hasn't been removed in order to install.
Log du module de composant Puppet de DS (CI et vagrant de démo)
Notice: /Stage[main]/D.../Exec[bundle install]/returns: Fetching gem metadata from https://rubygems.org/......
Notice: /Stage[main]/D.../Exec[bundle install]/returns: Your bundle is locked to mimemagic (0.3.5), but that version could not be found
Notice: /Stage[main]/D.../Exec[bundle install]/returns: in any of the sources listed in your Gemfile. If you haven't changed sources,
Notice: /Stage[main]/D.../Exec[bundle install]/returns: that means the author of mimemagic (0.3.5) has removed it. You'll need to update
Notice: /Stage[main]/D.../Exec[bundle install]/returns: your bundle to a version other than mimemagic (0.3.5) that hasn't been removed
Notice: /Stage[main]/D.../Exec[bundle install]/returns: in order to install.
Error: 'bundle install --path vendor/bundle' returned 7 instead of one of [0]
Error: /Stage[main]/D.../Exec[bundle install]/returns: change from 'notrun' to ['0'] failed: 'bundle install --path vendor/bundle' returned 7 instead of one of [0]
Ressources
- https://github.com/rails/rails/issues/41750
- https://github.com/rails/rails/pull/41751
- 2021-03-29-02 - https://github.com/betagouv/demarches-simplifiees.fr/pull/6033
- 2021-04-02-01 - https://github.com/betagouv/demarches-simplifiees.fr/pull/6047
- https://github.com/betagouv/demarches-simplifiees.fr/releases/tag/2021-04-02-01
- https://github.com/betagouv/demarches-simplifiees.fr/pull/6044
- https://github.com/betagouv/demarches-simplifiees.fr/commit/43f0a4ba48943472dedec01c93e0b63cbceea3ac
- https://github.com/betagouv/demarches-simplifiees.fr/commit/19bc60c555672e3375984bc3ae37a7414ce0aee1
2021-03-29-02
Cette PR ajoute une nouvelle dépendance à système à shared-mime-info sur les linux du à un changement au niveau de mimemagic (https://github.com/mimemagicrb/mimemagic#dependencies et rails/rails#41750)2021-04-02-01
Cette PR retire la dépendance à système à shared-mime-info sur les linux du à mimemagic.rails/rails#41750 - Dependency on mimemagic 0.3.x no longer valid
This is no longer a breaking issue because the maintainer of mimemagic has released a compatible version called 0.3.6, but the dependency probably still might need updating. mimemagicrb/mimemagic#98