Hello community,

here is the log from the commit of package yarn for openSUSE:Factory checked in 
at 2020-11-19 12:00:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yarn (Old)
 and      /work/SRC/openSUSE:Factory/.yarn.new.5913 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yarn"

Thu Nov 19 12:00:33 2020 rev:3 rq:849280 version:1.22.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/yarn/yarn.changes        2020-09-10 
22:55:27.788431501 +0200
+++ /work/SRC/openSUSE:Factory/.yarn.new.5913/yarn.changes      2020-11-23 
10:54:25.794838688 +0100
@@ -1,0 +2,6 @@
+Wed Nov 11 23:20:04 UTC 2020 - Dirk Mueller <[email protected]>
+
+- update to 1.22.10:
+  https://github.com/yarnpkg/yarn/releases/tag/v1.22. 10
+
+-------------------------------------------------------------------

Old:
----
  yarn-v1.22.5.tar.gz
  yarn-v1.22.5.tar.gz.asc

New:
----
  yarn-v1.22.10.tar.gz
  yarn-v1.22.10.tar.gz.asc

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yarn.spec ++++++
--- /var/tmp/diff_new_pack.JtuxHk/_old  2020-11-23 10:54:26.802839695 +0100
+++ /var/tmp/diff_new_pack.JtuxHk/_new  2020-11-23 10:54:26.806839700 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package yarn
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,21 +12,22 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           yarn
-Version:        1.22.5
+Version:        1.22.10
 Release:        0
 Summary:        📦🐈 Fast, reliable, and secure dependency management
 License:        BSD-2-Clause
 Group:          Development/Languages/NodeJS
-Url:            https://github.com/yarnpkg/yarn/releases
+URL:            https://github.com/yarnpkg/yarn/releases
 Source:         
https://github.com/yarnpkg/yarn/releases/download/v%{version}/yarn-v%{version}.tar.gz
 Source1:        
https://github.com/yarnpkg/yarn/releases/download/v%{version}/yarn-v%{version}.tar.gz.asc
 BuildArch:      noarch
 Requires:       nodejs >= 4.0
+
 %description
 Fast: Yarn caches every package it has downloaded, so it never needs to
 download the same package again. It also does almost everything concurrently to

++++++ yarn-v1.22.5.tar.gz -> yarn-v1.22.10.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yarn-v1.22.5/lib/cli.js new/yarn-v1.22.10/lib/cli.js
--- old/yarn-v1.22.5/lib/cli.js 2020-08-27 13:16:19.000000000 +0200
+++ new/yarn-v1.22.10/lib/cli.js        2020-10-02 13:16:50.000000000 +0200
@@ -78372,7 +78372,7 @@
 /* 438 */
 /***/ (function(module, exports) {
 
-module.exports = 
{"name":"yarn","installationMethod":"unknown","version":"1.22.5","license":"BSD-2-Clause","preferGlobal":true,"description":"📦🐈
 Fast, reliable, and secure dependency 
management.","dependencies":{"@zkochan/cmd-shim":"^3.1.0","babel-runtime":"^6.26.0","bytes":"^3.0.0","camelcase":"^4.0.0","chalk":"^2.1.0","cli-table3":"^0.4.0","commander":"^2.9.0","death":"^1.0.0","debug":"^3.0.0","deep-equal":"^1.0.1","detect-indent":"^5.0.0","dnscache":"^1.0.1","glob":"^7.1.1","gunzip-maybe":"^1.4.0","hash-for-dep":"^1.2.3","imports-loader":"^0.8.0","ini":"^1.3.4","inquirer":"^6.2.0","invariant":"^2.2.0","is-builtin-module":"^2.0.0","is-ci":"^1.0.10","is-webpack-bundle":"^1.0.0","js-yaml":"^3.13.1","leven":"^2.0.0","loud-rejection":"^1.2.0","micromatch":"^2.3.11","mkdirp":"^0.5.1","node-emoji":"^1.6.1","normalize-url":"^2.0.0","npm-logical-tree":"^1.2.1","object-path":"^0.11.2","proper-lockfile":"^2.0.0","puka":"^1.0.0","read":"^1.0.7","request":"^2.87.0","request-capture-har":"^1.2.2","rimraf":"^2.5.0","semver":"^5.1.0","ssri":"^5.3.0","strip-ansi":"^4.0.0","strip-bom":"^3.0.0","tar-fs":"^1.16.0","tar-stream":"^1.6.1","uuid":"^3.0.1","v8-compile-cache":"^2.0.0","validate-npm-package-license":"^3.0.4","yn":"^2.0.0"},"devDependencies":{"babel-core":"^6.26.0","babel-eslint":"^7.2.3","babel-loader":"^6.2.5","babel-plugin-array-includes":"^2.0.3","babel-plugin-inline-import":"^3.0.0","babel-plugin-transform-builtin-extend":"^1.1.2","babel-plugin-transform-inline-imports-commonjs":"^1.0.0","babel-plugin-transform-runtime":"^6.4.3","babel-preset-env":"^1.6.0","babel-preset-flow":"^6.23.0","babel-preset-stage-0":"^6.0.0","babylon":"^6.5.0","commitizen":"^2.9.6","cz-conventional-changelog":"^2.0.0","eslint":"^4.3.0","eslint-config-fb-strict":"^22.0.0","eslint-plugin-babel":"^5.0.0","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-jasmine":"^2.6.2","eslint-plugin-jest":"^21.0.0","eslint-plugin-jsx-a11y":"^6.0.2","eslint-plugin-prefer-object-spread":"^1.2.1","eslint-plugin-prettier":"^2.1.2","eslint-plugin-react":"^7.1.0","eslint-plugin-relay":"^0.0.28","eslint-plugin-yarn-internal":"file:scripts/eslint-rules","execa":"^0.11.0","fancy-log":"^1.3.2","flow-bin":"^0.66.0","git-release-notes":"^3.0.0","gulp":"^4.0.0","gulp-babel":"^7.0.0","gulp-if":"^2.0.1","gulp-newer":"^1.0.0","gulp-plumber":"^1.0.1","gulp-sourcemaps":"^2.2.0","jest":"^22.4.4","jsinspect":"^0.12.6","minimatch":"^3.0.4","mock-stdin":"^0.3.0","prettier":"^1.5.2","string-replace-loader":"^2.1.1","temp":"^0.8.3","webpack":"^2.1.0-beta.25","yargs":"^6.3.0"},"resolutions":{"sshpk":"^1.14.2"},"engines":{"node":">=4.0.0"},"repository":"yarnpkg/yarn","bin":{"yarn":"./bin/yarn.js","yarnpkg":"./bin/yarn.js"},"scripts":{"build":"gulp
 build","build-bundle":"node 
./scripts/build-webpack.js","build-chocolatey":"powershell 
./scripts/build-chocolatey.ps1","build-deb":"./scripts/build-deb.sh","build-dist":"bash
 
./scripts/build-dist.sh","build-win-installer":"scripts\\build-windows-installer.bat","changelog":"git-release-notes
 $(git describe --tags --abbrev=0 $(git describe --tags --abbrev=0)^)..$(git 
describe --tags --abbrev=0) scripts/changelog.md","dupe-check":"yarn jsinspect 
./src","lint":"eslint . && flow check","pkg-tests":"yarn --cwd 
packages/pkg-tests jest yarn.test.js","prettier":"eslint src __tests__ 
--fix","release-branch":"./scripts/release-branch.sh","test":"yarn lint && yarn 
test-only","test-only":"node --max_old_space_size=4096 
node_modules/jest/bin/jest.js --verbose","test-only-debug":"node --inspect-brk 
--max_old_space_size=4096 node_modules/jest/bin/jest.js --runInBand 
--verbose","test-coverage":"node --max_old_space_size=4096 
node_modules/jest/bin/jest.js --coverage --verbose","watch":"gulp 
watch","commit":"git-cz"},"jest":{"collectCoverageFrom":["src/**/*.js"],"testEnvironment":"node","modulePathIgnorePatterns":["__tests__/fixtures/","packages/pkg-tests/pkg-tests-fixtures","dist/"],"testPathIgnorePatterns":["__tests__/(fixtures|__mocks__)/","updates/","_(temp|mock|install|init|helpers).js$","packages/pkg-tests"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}}}
+module.exports = 
{"name":"yarn","installationMethod":"unknown","version":"1.22.10","license":"BSD-2-Clause","preferGlobal":true,"description":"📦🐈
 Fast, reliable, and secure dependency 
management.","dependencies":{"@zkochan/cmd-shim":"^3.1.0","babel-runtime":"^6.26.0","bytes":"^3.0.0","camelcase":"^4.0.0","chalk":"^2.1.0","cli-table3":"^0.4.0","commander":"^2.9.0","death":"^1.0.0","debug":"^3.0.0","deep-equal":"^1.0.1","detect-indent":"^5.0.0","dnscache":"^1.0.1","glob":"^7.1.1","gunzip-maybe":"^1.4.0","hash-for-dep":"^1.2.3","imports-loader":"^0.8.0","ini":"^1.3.4","inquirer":"^6.2.0","invariant":"^2.2.0","is-builtin-module":"^2.0.0","is-ci":"^1.0.10","is-webpack-bundle":"^1.0.0","js-yaml":"^3.13.1","leven":"^2.0.0","loud-rejection":"^1.2.0","micromatch":"^2.3.11","mkdirp":"^0.5.1","node-emoji":"^1.6.1","normalize-url":"^2.0.0","npm-logical-tree":"^1.2.1","object-path":"^0.11.2","proper-lockfile":"^2.0.0","puka":"^1.0.0","read":"^1.0.7","request":"^2.87.0","request-capture-har":"^1.2.2","rimraf":"^2.5.0","semver":"^5.1.0","ssri":"^5.3.0","strip-ansi":"^4.0.0","strip-bom":"^3.0.0","tar-fs":"^1.16.0","tar-stream":"^1.6.1","uuid":"^3.0.1","v8-compile-cache":"^2.0.0","validate-npm-package-license":"^3.0.4","yn":"^2.0.0"},"devDependencies":{"babel-core":"^6.26.0","babel-eslint":"^7.2.3","babel-loader":"^6.2.5","babel-plugin-array-includes":"^2.0.3","babel-plugin-inline-import":"^3.0.0","babel-plugin-transform-builtin-extend":"^1.1.2","babel-plugin-transform-inline-imports-commonjs":"^1.0.0","babel-plugin-transform-runtime":"^6.4.3","babel-preset-env":"^1.6.0","babel-preset-flow":"^6.23.0","babel-preset-stage-0":"^6.0.0","babylon":"^6.5.0","commitizen":"^2.9.6","cz-conventional-changelog":"^2.0.0","eslint":"^4.3.0","eslint-config-fb-strict":"^22.0.0","eslint-plugin-babel":"^5.0.0","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-jasmine":"^2.6.2","eslint-plugin-jest":"^21.0.0","eslint-plugin-jsx-a11y":"^6.0.2","eslint-plugin-prefer-object-spread":"^1.2.1","eslint-plugin-prettier":"^2.1.2","eslint-plugin-react":"^7.1.0","eslint-plugin-relay":"^0.0.28","eslint-plugin-yarn-internal":"file:scripts/eslint-rules","execa":"^0.11.0","fancy-log":"^1.3.2","flow-bin":"^0.66.0","git-release-notes":"^3.0.0","gulp":"^4.0.0","gulp-babel":"^7.0.0","gulp-if":"^2.0.1","gulp-newer":"^1.0.0","gulp-plumber":"^1.0.1","gulp-sourcemaps":"^2.2.0","jest":"^22.4.4","jsinspect":"^0.12.6","minimatch":"^3.0.4","mock-stdin":"^0.3.0","prettier":"^1.5.2","string-replace-loader":"^2.1.1","temp":"^0.8.3","webpack":"^2.1.0-beta.25","yargs":"^6.3.0"},"resolutions":{"sshpk":"^1.14.2"},"engines":{"node":">=4.0.0"},"repository":"yarnpkg/yarn","bin":{"yarn":"./bin/yarn.js","yarnpkg":"./bin/yarn.js"},"scripts":{"build":"gulp
 build","build-bundle":"node 
./scripts/build-webpack.js","build-chocolatey":"powershell 
./scripts/build-chocolatey.ps1","build-deb":"./scripts/build-deb.sh","build-dist":"bash
 
./scripts/build-dist.sh","build-win-installer":"scripts\\build-windows-installer.bat","changelog":"git-release-notes
 $(git describe --tags --abbrev=0 $(git describe --tags --abbrev=0)^)..$(git 
describe --tags --abbrev=0) scripts/changelog.md","dupe-check":"yarn jsinspect 
./src","lint":"eslint . && flow check","pkg-tests":"yarn --cwd 
packages/pkg-tests jest yarn.test.js","prettier":"eslint src __tests__ 
--fix","release-branch":"./scripts/release-branch.sh","test":"yarn lint && yarn 
test-only","test-only":"node --max_old_space_size=4096 
node_modules/jest/bin/jest.js --verbose","test-only-debug":"node --inspect-brk 
--max_old_space_size=4096 node_modules/jest/bin/jest.js --runInBand 
--verbose","test-coverage":"node --max_old_space_size=4096 
node_modules/jest/bin/jest.js --coverage --verbose","watch":"gulp 
watch","commit":"git-cz"},"jest":{"collectCoverageFrom":["src/**/*.js"],"testEnvironment":"node","modulePathIgnorePatterns":["__tests__/fixtures/","packages/pkg-tests/pkg-tests-fixtures","dist/"],"testPathIgnorePatterns":["__tests__/(fixtures|__mocks__)/","updates/","_(temp|mock|install|init|helpers).js$","packages/pkg-tests"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}}}
 
 /***/ }),
 /* 439 */
@@ -88927,7 +88927,7 @@
       if (!(yield (_fs || _load_fs()).exists(lockfilePath))) {
         yield (_fs || _load_fs()).writeFile(lockfilePath, '');
       }
-      yield (_child || _load_child()).spawn((_constants || 
_load_constants()).NODE_BIN_PATH, [process.argv[1], 'policies', 'set-version', 
installVersion], {
+      yield (_child || _load_child()).spawn((_constants || 
_load_constants()).NODE_BIN_PATH, [process.argv[1], 'policies', 'set-version', 
installVersion, '--silent'], {
         stdio: 'inherit',
         cwd: config.cwd
       });
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yarn-v1.22.5/package.json 
new/yarn-v1.22.10/package.json
--- old/yarn-v1.22.5/package.json       2020-08-27 13:16:20.000000000 +0200
+++ new/yarn-v1.22.10/package.json      2020-10-02 13:16:50.000000000 +0200
@@ -1,7 +1,7 @@
 {
   "name": "yarn",
   "installationMethod": "tar",
-  "version": "1.22.5",
+  "version": "1.22.10",
   "license": "BSD-2-Clause",
   "preferGlobal": true,
   "description": "📦🐈 Fast, reliable, and secure dependency management.",
@@ -16,6 +16,9 @@
     "yarn": "./bin/yarn.js",
     "yarnpkg": "./bin/yarn.js"
   },
+  "scripts": {
+    "preinstall": ":; (node ./preinstall.js > /dev/null 2>&1 || true)"
+  },
   "config": {
     "commitizen": {
       "path": "./node_modules/cz-conventional-changelog"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yarn-v1.22.5/preinstall.js 
new/yarn-v1.22.10/preinstall.js
--- old/yarn-v1.22.5/preinstall.js      1970-01-01 01:00:00.000000000 +0100
+++ new/yarn-v1.22.10/preinstall.js     2020-10-02 13:16:50.000000000 +0200
@@ -0,0 +1,60 @@
+// This file is a bit weird, so let me explain with some context: we're working
+// to implement a tool called "Corepack" in Node. This tool will allow us to
+// provide a Yarn shim to everyone using Node, meaning that they won't need to
+// run `npm install -g yarn`.
+//
+// Still, we don't want to break the experience of people that already use `npm
+// install -g yarn`! And one annoying thing with npm is that they install their
+// binaries directly inside the Node bin/ folder. And Because of this, they
+// refuse to overwrite binaries when they detect they don't belong to npm. 
Which
+// means that, since the "yarn" Corepack symlink belongs to Corepack and not 
npm,
+// running `npm install -g yarn` would crash by refusing to override the 
binary :/
+//
+// And thus we have this preinstall script, which checks whether Yarn is being
+// installed as a global binary, and remove the existing symlink if it detects
+// it belongs to Corepack. Since preinstall scripts run, in npm, before the 
global
+// symlink is created, we bypass this way the ownership check.
+//
+// More info:
+// https://github.com/arcanis/pmm/issues/6
+
+if (process.env.npm_config_global) {
+    var cp = require('child_process');
+    var fs = require('fs');
+    var path = require('path');
+
+    try {
+        var targetPath = cp.execFileSync(process.execPath, 
[process.env.npm_execpath, 'bin', '-g'], {
+            encoding: 'utf8',
+            stdio: ['ignore', undefined, 'ignore'],
+        }).replace(/\n/g, '');
+
+        var manifest = require('./package.json');
+        var binNames = typeof manifest.bin === 'string'
+            ? [manifest.name.replace(/^@[^\/]+\//, '')]
+            : typeof manifest.bin === 'object' && manifest.bin !== null
+            ? Object.keys(manifest.bin)
+            : [];
+
+        binNames.forEach(function (binName) {
+            var binPath = path.join(targetPath, binName);
+
+            var binTarget;
+            try {
+                binTarget = fs.readlinkSync(binPath);
+            } catch (err) {
+                return;
+            }
+
+            if (binTarget.startsWith('../lib/node_modules/corepack/')) {
+                try {
+                    fs.unlinkSync(binPath);
+                } catch (err) {
+                    return;
+                }
+            }
+        });
+    } catch (err) {
+        // ignore errors
+    }
+}
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/[email protected]

Reply via email to