yarnpkg / yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
https://classic.yarnpkg.com
Other
41.37k stars 2.72k forks source link

stable (1.22.19) and latest (1.22.22) are different #9060

Closed MikeMcC399 closed 1 month ago

MikeMcC399 commented 1 month ago

Issue

The stable version 1.22.19 and the latest version 1.22.22 of Yarn V1 Classic are different.

whereas the published package shows latest: '1.22.22'

$ yarn info yarn dist-tags
yarn info v1.22.22
{
  latest: '1.22.22',
  rc: '1.22.0',
  berry: '2.4.3',
  legacy: '1.21.1'
}

Question

Will the stable version of Yarn v1 ever be elevated to 1.22.22 or is it expected to stay at 1.22.19?

Related issues

MikeMcC399 commented 1 month ago

Following the install instructions for Debian / Ubuntu on https://classic.yarnpkg.com/en/docs/install#debian-stable consequently leads to the installation of Yarn v1 1.22.19 (stable), not 1.22.22 (latest)

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install --no-install-recommends yarn
yarn --version

Logs

$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install --no-install-recommends yarn
yarn --version
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
deb https://dl.yarnpkg.com/debian/ stable main
Hit:1 http://de.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 https://dl.yarnpkg.com/debian stable InRelease
Hit:3 http://de.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://de.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:5 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Fetched 110 kB in 1s (117 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: https://dl.yarnpkg.com/debian/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  javascript-common libc-ares2 libjs-highlight.js libnode72 nodejs-doc
Use 'sudo apt autoremove' to remove them.
Recommended packages:
  nodejs
The following NEW packages will be installed:
  yarn
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 893 kB of archives.
After this operation, 5.415 kB of additional disk space will be used.
Get:1 https://dl.yarnpkg.com/debian stable/main amd64 yarn all 1.22.19-1 [893 kB]
Fetched 893 kB in 1s (1.760 kB/s)
Selecting previously unselected package yarn.
(Reading database ... 186018 files and directories currently installed.)
Preparing to unpack .../yarn_1.22.19-1_all.deb ...
Unpacking yarn (1.22.19-1) ...
Setting up yarn (1.22.19-1) ...
1.22.19
Daniel15 commented 1 month ago

Site has been updated.

@MikeMcC399 I'm hitting an error when trying to update the Debian repo:

Signing file 'Release' with gpg, please enter your passphrase when prompted:
gpg: skipped "23E7166788B63E1E!": Unusable secret key
gpg: signing failed: Unusable secret key
ERROR: unable to publish: unable to detached sign file: exit status 2

which is weird because I can use the key for other things.

I'll push to the repo once I figure this out.

Daniel15 commented 1 month ago

@MikeMcC399 Debian repo has been updated: https://github.com/yarnpkg/releases/blame/gh-pages/debian/dists/stable/main/binary-all/Packages#L7. RPM repo is up-to-date now too.

15:09 daniel@la05 /usr/local/src/yarn-releases-auto
% sudo apt install yarn
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be upgraded:
  yarn
1 upgraded, 0 newly installed, 0 to remove and 55 not upgraded.
Need to get 896 kB of archives.
After this operation, 16.4 kB of additional disk space will be used.
Get:1 https://dl.yarnpkg.com/debian stable/main amd64 yarn all 1.22.22-1 [896 kB]
Fetched 896 kB in 0s (3,267 kB/s)
Reading changelogs... Done
(Reading database ... 91695 files and directories currently installed.)
Preparing to unpack .../yarn_1.22.22-1_all.deb ...
Unpacking yarn (1.22.22-1) over (1.22.19-1) ...
Setting up yarn (1.22.22-1) ...

15:09 daniel@la05 /usr/local/src/yarn-releases-auto
% yarn --version
1.22.22
MikeMcC399 commented 1 month ago

@Daniel15

Thank you very much! I can confirm it is working for me too. 👍🏻