Skip to content

Trixie - #97

Open
Axolotle wants to merge 7 commits into
mainfrom
trixie
Open

Axolotle wants to merge 7 commits into
mainfrom
trixie

Conversation

@Axolotle

Copy link
Copy Markdown
Member

Summary

  • change default dist to trixie
  • use yarnpkg instead of yarn

@Salamandar

Copy link
Copy Markdown
Contributor

Could we support both at the same time ?

@zamentur

Copy link
Copy Markdown
Member

both what ?

@Salamandar

Copy link
Copy Markdown
Contributor

trixie and bookworm (by installing yarn or yarnpkg ?)

@sitegui

sitegui commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

I'm trying to use ynh-dev to test my patch on yunohost-admin, but I'm having some trouble with yarn.

I've tested with the main and this branch, but both are failing with different problems:

In Debian Trixie, the package yarnpkg refers to the version 4.1.0, that uses the "modern/berry" format, which is a breaking change. This wiki page has more details: https://wiki.debian.org/Yarn

Running ./ynh-dev use-git yunohost-admin from a trixie image in this branch, the new yarnpkg run an auto-migration that fails because it was asked not to touch the lockfile:

➤ YN0087: Migrated your project to the latest Yarn version 🚀

➤ YN0000: · Yarn 4.1.0
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + @fontsource/fira-code@npm:5.3.0, @fontsource/firago@npm:5.3.0, @types/node@npm:22.20.5, @types/uuid@npm:10.0.0, @vitejs/plugin-vue@npm:5.2.4, @vue/eslint-config-prettier@npm:10.2.0, @vue/eslint-config-typescript@npm:14.9.0, @vue/tsconfig@npm:0.7.0, @vuelidate/core@npm:2.0.3, and 323 more.
➤ YN0000: └ Completed in 4s 405ms
➤ YN0000: ┌ Post-resolution validation
➤ YN0002: │ yunohost-admin@workspace:. doesn't provide @popperjs/core (pd9279), requested by bootstrap.
➤ YN0086: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code.

... thousands of diff lines ...

➤ YN0000: │
➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.
➤ YN0000: └ Completed in 11s 968ms
➤ YN0000: · Failed with errors in 16s 394ms

I'm not sure, but I understand that the project currently uses yarn "classic" 1.x. So it would be better to do:

if [[ $(dpkg-query -W -f='${Status}' node-corepack 2>/dev/null | grep -c "ok installed") -eq 0 ]];
then
    # Trixie does not have the yarn package anymore. Instead it has yarnpkg, but with the "modern/Berry" version
    # that no longer uses node_modules, from what I understand from https://wiki.debian.org/Yarn
    # So instead we use node-corepack for yarn classic
    info "Installing yarn (from node-corepack)…"
    apt update
    apt install node-corepack
    corepack enable
fi

What do you think?

@zamentur

Copy link
Copy Markdown
Member

No point of view on my side other than we need something that works. I made my last dev on it with yarn

Maybe @Salamandar has some point of view on this cause, he seems to like tree/project structure refactoring

@sitegui

sitegui commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Testing yunohost-admin, I've noticed that the source path has changed between bookworm and trixie.

I've written this patch: sitegui@6e0dc01

Do you think we can integrate it on this PR?

@zamentur

zamentur commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Do you think we can integrate it on this PR?

yes you can make a pull request targetting this branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants