Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn no longer saves git/github packages in offline mirror #3154

Closed
agibralter opened this issue Apr 14, 2017 · 28 comments
Closed

yarn no longer saves git/github packages in offline mirror #3154

agibralter opened this issue Apr 14, 2017 · 28 comments
Assignees

Comments

@agibralter
Copy link

Do you want to request a feature or report a bug?

bug

What is the current behavior?

Given our ./package.json like this:

{
  "dependencies": {
    "@kadira/react-storybook-addon-info": "^3.3.0",
    "@kadira/storybook-ui": "^3.11.0",
    "internal-pkg": "git+ssh://git@github.com/me/internal-pkg.git#abcdef0",
    ...
  }
}

And ./.yarnrc:

yarn-offline-mirror "./vendor/npm_cache"
yarn-offline-mirror-pruning true

Running yarn no longer seems to save the dependencies from github/git in our npm_cache.

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

Running ls on the ./vendor/npm_cache should include non-npm-hosted packages.

Please mention your node.js, yarn and operating system version.

macOS 10.12.4:

$ which node
/Users/me/.nvm/versions/node/v6.9.4/bin/node

$ node -v
v6.9.4

$ which yarn
/usr/local/bin/yarn

$ yarn --version
0.23.2

(Node is installed via nvm and yarn via brew)

@tribou
Copy link
Contributor

tribou commented Apr 15, 2017

I'm getting the same issue when yarn tries to resolve console-polyfill inside the rollbar-browser package:

yarn install v0.23.2
warning You don't appear to have an internet connection. Try the --offline flag to use the cache for registry queries.
[1/4] 🔍  Resolving packages...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://github.com/rollbar/console-polyfill.git: getaddrinfo ENOTFOUND github.com github.com:443".
info If you think this is a bug, please open a bug report with the information provided in "/Users/tribou/dev/react-template/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
> cat yarn.lock | grep -A 3 console-polyfill
console-polyfill@rollbar/console-polyfill#eab6ff9d2b7597fc2f259baa18100556bdb94dbe:
  version "0.2.3"
  resolved "https://codeload.github.com/rollbar/console-polyfill/tar.gz/eab6ff9d2b7597fc2f259baa18100556bdb94dbe"

    console-polyfill rollbar/console-polyfill#eab6ff9d2b7597fc2f259baa18100556bdb94dbe
    error-stack-parser "1.3.3"
    extend "3.0.0"

yarn why v0.23.2
[1/4] 🤔  Why do we have the module "console-polyfill"...?
[2/4] 🚚  Initialising dependency graph...
[3/4] 🔍  Finding dependency...
[4/4] 🚡  Calculating file sizes...
info This module exists because "rollbar-browser" depends on it.
info Disk size without dependencies: "24kB"
info Disk size with unique dependencies: "24kB"
info Disk size with transitive dependencies: "24kB"
info Amount of shared dependencies: 0
✨  Done in 2.79s.

From my current node_modules/rollbar-browser/package.json:

"dependencies": {
    "console-polyfill": "rollbar/console-polyfill#eab6ff9d2b7597fc2f259baa18100556bdb94dbe",
  • OS X El Capitan
    10.11.6 (15G1421)
  • node v6.10.1
  • yarn v0.23.2

@agibralter
Copy link
Author

agibralter commented Apr 15, 2017

Note I get the correct behavior when using: npm install -g yarn@v0.21.3 + yarn.

Also the entires in yarn.lock are not correctly displaying resolved:

v0.23.2: resolved "https://registry.yarnpkg.com/mime/-/mime-1.3.4.tgz#115f9e3b6b3daf2959983cb38f149a2d40eb5d53"

vs

v0.21.3: resolved mime-1.3.4.tgz#115f9e3b6b3daf2959983cb38f149a2d40eb5d53

@arcanis
Copy link
Member

arcanis commented May 2, 2017

Is it still an issue, @agibralter ? The resolved field has changed starting from 0.23, so it's completely expected that you now have full urls even when using an offline mirror.

@tribou
Copy link
Contributor

tribou commented May 2, 2017

@arcanis please see my comment above as I was using yarn v0.23 which couldn't get console-polyfill offline.

@agibralter
Copy link
Author

@arcanis I just tested with 0.23.4. I have a package in package.json as I described above ("internal-pkg": "git+ssh://git@github.com/me/internal-pkg.git#abcdef0"). When I start fresh (e.g. rm -rf node_modules; rm -rf vendor/npm_cache; rm -rf yarn.lock) and run yarn, my internal-pkg does not get added to vendor/npm_cache.

@agibralter
Copy link
Author

$ rm -rf node_modules/

$ yarn cache clean
yarn cache v0.23.4
success Cleared cache.
✨  Done in 6.52s.

$ yarn --offline
yarn install v0.23.4
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
error Can't make a request in offline mode
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I don't see how anyone has offline mirror working in 0.23.x now... Can someone please confirm that offline mirror works at all anymore?

@dizlexik
Copy link

dizlexik commented May 5, 2017

I've been keeping my eye on this issue hoping for it to get resolved.

I've been using v0.21.3 for a while now because offline mirror functionality seems to be completely broken in newer releases, and I was running into the same issues as you, @agibralter.

Among other reasons, I too rely on offline mirror to cache copies of my internal git dependencies so I don't have to massively overcomplicate my CI process. I'd really love to see this fixed sooner than later so I'm not stuck on this old version of yarn.

@agibralter
Copy link
Author

For what it's worth, I've had some success with 0.22.0. It seems to have slightly inconsistent behavior about when it outputs a URL to yarn.lock vs. when it outputs a filename...

@arcanis
Copy link
Member

arcanis commented May 5, 2017

The offline mirror works fine, at least for regular packages. I'm not sure we have a unit test for git repositories, which might explain why something could have broke here :/ Definitely something we should add (PR accepted, if you're faster than us :).

I've tried to reproduce your issues, and:

  • I haven't been able to bring Yarn to not add the tarball to the offline mirror, even when it's from a git repository (I've tried with arcanis/private-pkg). If you still have this particular issue, I would really appreciate a repro script that I can run.

  • I, however, have been experiencing a problem with the offline mirror where the tarball hashes cannot match in offline mode, because we're trying to compare the tarball sha1 hash with the commit hash. That shouldn't happen, I'll look into fixing that.

I'm sorry for the problems you've experienced, we'll do our best to fix it in the next tagged release.

@jaredru
Copy link

jaredru commented May 5, 2017

@arcanis The tarball/commit hash comparison issue you mention is #3198.

@agibralter
Copy link
Author

@arcanis Ok now I'm confused—I'm getting different behavior in my app's project than I am on a fresh project. I created this: https://github.com/agibralter/yarn-test/blob/master/test.sh

I can confirm that with that script I get:

initial install
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.12s.
yarn install v0.23.4
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
error Bad hash. Expected "912d6b04a1f6b732508a6da72a95ec4f96bda154" but got "a55045c401cba531f8baff4b0c026cd3e20ee940"
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
offline install
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.12s.
yarn install v0.23.4
info No lockfile found.
[1/4] 🔍  Resolving packages...
error Couldn't find any versions for "classnames" that matches "^2.2.5" in our cache. Possible versions: ""
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

When I run it on my project I get:

initial install
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.14s.
yarn install v0.23.4
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
success Saved lockfile.
✨  Done in 62.30s.
offline install
yarn cache v0.23.4
success Cleared cache.
✨  Done in 3.84s.
yarn install v0.23.4
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
error Can't make a request in offline mode
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

However, I realized that we have yarn-offline-mirror-pruning true in our .yarnrc. Without that line in there, the output is:

initial install
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.17s.
yarn install v0.23.4
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
success Saved lockfile.
✨  Done in 46.59s.
offline install
yarn cache v0.23.4
success Cleared cache.
✨  Done in 3.88s.
yarn install v0.23.4
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
error Bad hash. Expected "d6abb8da89eb100f68416cf773a9b96325fd0b10" but got "f01e27a839d355571f5fa850e000f6f46ca33703"
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Strange thing is, though, that when I add yarn-offline-mirror-pruning true to the test project, it doesn't change the output...

@agibralter
Copy link
Author

Ooh, I'm realizing that a lock file never got created because of the error...

@agibralter
Copy link
Author

agibralter commented May 5, 2017

Ok I've rebuilt my script to be more robust on a different branch: https://github.com/agibralter/yarn-test/tree/offline-mode-broken

I can reliably reproduce the broken behavior with git and also npm scoped repos:

$ ./test.sh
---------------------------------------------
Running: with-pruning simple

initial install
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.18s.
yarn install v0.23.4
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
success Saved lockfile.
✨  Done in 0.44s.

offline install
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.04s.
yarn install v0.23.4
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
✨  Done in 0.20s.
classnames-2.2.5.tgz

Will yarn add missing packages from cache?
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.04s.
yarn install v0.23.4
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 0.13s.
---------------------------------------------

---------------------------------------------
Running: without-pruning simple

initial install
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.03s.
yarn install v0.23.4
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
success Saved lockfile.
✨  Done in 0.33s.

offline install
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.03s.
yarn install v0.23.4
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
✨  Done in 0.20s.
classnames-2.2.5.tgz

Will yarn add missing packages from cache?
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.03s.
yarn install v0.23.4
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 0.14s.
---------------------------------------------

---------------------------------------------
Running: with-pruning git

initial install
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.03s.
yarn install v0.23.4
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
success Saved lockfile.
✨  Done in 31.58s.

offline install
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.13s.
yarn install v0.23.4
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
✨  Done in 11.58s.
classnames-2.2.5.tgz

Will yarn add missing packages from cache?
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.14s.
yarn install v0.23.4
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 0.14s.
---------------------------------------------

---------------------------------------------
Running: without-pruning git

initial install
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.03s.
yarn install v0.23.4
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
success Saved lockfile.
✨  Done in 14.09s.

offline install
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.14s.
yarn install v0.23.4
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
error Bad hash. Expected "912d6b04a1f6b732508a6da72a95ec4f96bda154" but got "a55045c401cba531f8baff4b0c026cd3e20ee940"
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
classnames-2.2.5.tgz					lodash.git-912d6b04a1f6b732508a6da72a95ec4f96bda154

Will yarn add missing packages from cache?
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.03s.
yarn install v0.23.4
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
✨  Done in 9.52s.
classnames-2.2.5.tgz					lodash.git-912d6b04a1f6b732508a6da72a95ec4f96bda154
---------------------------------------------

---------------------------------------------
Running: with-pruning npm-scope

initial install
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.14s.
yarn install v0.23.4
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "@kadira/storybook-ui@3.11.0" has unmet peer dependency "react@^0.14.7 || ^15.0.0".
warning "@kadira/storybook-ui@3.11.0" has unmet peer dependency "react-dom@^0.14.7 || ^15.0.0".
warning "react-fuzzy@0.3.3" has unmet peer dependency "react@^0.14.7 || ^15.0.0".
warning "react-inspector@1.1.2" has unmet peer dependency "react@^0.14.0 || ^15.0.0-0".
warning "react-simple-di@1.2.0" has unmet peer dependency "react@^0.14.0 || ^15.0.0".
warning "react-modal@1.7.7" has unmet peer dependency "react@^0.14.0 || ^15.0.0".
warning "react-modal@1.7.7" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0".
warning "react-komposer@2.0.0" has unmet peer dependency "react@^0.14.7 || ^15.0.0".
warning "react-komposer@1.13.1" has unmet peer dependency "react@^0.14.3 || ^15.0.0".
warning "react-stubber@1.0.0" has unmet peer dependency "react@^0.14.7 || ^15.0.0".
warning "@kadira/react-split-pane@1.4.7" has unmet peer dependency "react@^0.14.8 || ^15.0.0".
warning "@kadira/react-split-pane@1.4.7" has unmet peer dependency "react-dom@^0.14.8 || ^15.0.0".
[4/4] 📃  Building fresh packages...
success Saved lockfile.
✨  Done in 5.52s.

offline install
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.87s.
yarn install v0.23.4
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
error Can't make a request in offline mode
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
asap-2.0.5.tgz				encoding-0.1.12.tgz			immutable-3.8.1.tgz			lodash-4.17.4.tgz			lodash.sortby-4.7.0.tgz			prop-types-15.5.8.tgz			react-stubber-1.0.0.tgz
babel-runtime-6.23.0.tgz		events-1.1.1.tgz			invariant-2.2.2.tgz			lodash-es-4.17.4.tgz			loose-envify-1.3.1.tgz			qs-6.4.0.tgz				redux-3.6.0.tgz
classnames-2.2.5.tgz			exenv-1.2.0.tgz				is-dom-1.0.9.tgz			lodash._getnative-3.9.1.tgz		mantra-core-1.7.0.tgz			react-fuzzy-0.3.3.tgz			regenerator-runtime-0.10.5.tgz
core-js-1.2.7.tgz			fbjs-0.8.12.tgz				is-stream-1.1.0.tgz			lodash.assign-4.2.0.tgz			mobx-2.7.0.tgz				react-inspector-1.1.2.tgz		setimmediate-1.0.5.tgz
core-js-2.4.1.tgz			fuse.js-2.7.4.tgz			isomorphic-fetch-2.2.1.tgz		lodash.isarguments-3.1.0.tgz		node-fetch-1.6.3.tgz			react-komposer-1.13.1.tgz		shallowequal-0.2.2.tgz
create-react-class-15.5.2.tgz		fuzzysearch-1.0.3.tgz			js-tokens-3.0.1.tgz			lodash.isarray-3.0.4.tgz		object-assign-4.1.1.tgz			react-komposer-2.0.0.tgz		symbol-observable-1.0.4.tgz
deep-equal-1.0.1.tgz			hoist-non-react-statics-1.2.0.tgz	json-stringify-safe-5.0.1.tgz		lodash.keys-3.1.2.tgz			podda-1.2.2.tgz				react-modal-1.7.7.tgz			ua-parser-js-0.7.12.tgz
element-class-0.2.2.tgz			iconv-lite-0.4.17.tgz			keycode-2.1.9.tgz			lodash.pick-4.4.0.tgz			promise-7.1.1.tgz			react-simple-di-1.2.0.tgz		whatwg-fetch-2.0.3.tgz

Will yarn add missing packages from cache?
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.03s.
yarn install v0.23.4
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "@kadira/storybook-ui@3.11.0" has unmet peer dependency "react@^0.14.7 || ^15.0.0".
warning "@kadira/storybook-ui@3.11.0" has unmet peer dependency "react-dom@^0.14.7 || ^15.0.0".
warning "@kadira/react-split-pane@1.4.7" has unmet peer dependency "react@^0.14.8 || ^15.0.0".
warning "@kadira/react-split-pane@1.4.7" has unmet peer dependency "react-dom@^0.14.8 || ^15.0.0".
warning "react-fuzzy@0.3.3" has unmet peer dependency "react@^0.14.7 || ^15.0.0".
warning "react-inspector@1.1.2" has unmet peer dependency "react@^0.14.0 || ^15.0.0-0".
warning "react-komposer@2.0.0" has unmet peer dependency "react@^0.14.7 || ^15.0.0".
warning "react-modal@1.7.7" has unmet peer dependency "react@^0.14.0 || ^15.0.0".
warning "react-modal@1.7.7" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0".
warning "react-komposer@1.13.1" has unmet peer dependency "react@^0.14.3 || ^15.0.0".
warning "react-simple-di@1.2.0" has unmet peer dependency "react@^0.14.0 || ^15.0.0".
warning "react-stubber@1.0.0" has unmet peer dependency "react@^0.14.7 || ^15.0.0".
[4/4] 📃  Building fresh packages...
✨  Done in 4.71s.
asap-2.0.5.tgz				encoding-0.1.12.tgz			immutable-3.8.1.tgz			lodash-4.17.4.tgz			lodash.sortby-4.7.0.tgz			prop-types-15.5.8.tgz			react-stubber-1.0.0.tgz
babel-runtime-6.23.0.tgz		events-1.1.1.tgz			invariant-2.2.2.tgz			lodash-es-4.17.4.tgz			loose-envify-1.3.1.tgz			qs-6.4.0.tgz				redux-3.6.0.tgz
classnames-2.2.5.tgz			exenv-1.2.0.tgz				is-dom-1.0.9.tgz			lodash._getnative-3.9.1.tgz		mantra-core-1.7.0.tgz			react-fuzzy-0.3.3.tgz			regenerator-runtime-0.10.5.tgz
core-js-1.2.7.tgz			fbjs-0.8.12.tgz				is-stream-1.1.0.tgz			lodash.assign-4.2.0.tgz			mobx-2.7.0.tgz				react-inspector-1.1.2.tgz		setimmediate-1.0.5.tgz
core-js-2.4.1.tgz			fuse.js-2.7.4.tgz			isomorphic-fetch-2.2.1.tgz		lodash.isarguments-3.1.0.tgz		node-fetch-1.6.3.tgz			react-komposer-1.13.1.tgz		shallowequal-0.2.2.tgz
create-react-class-15.5.2.tgz		fuzzysearch-1.0.3.tgz			js-tokens-3.0.1.tgz			lodash.isarray-3.0.4.tgz		object-assign-4.1.1.tgz			react-komposer-2.0.0.tgz		symbol-observable-1.0.4.tgz
deep-equal-1.0.1.tgz			hoist-non-react-statics-1.2.0.tgz	json-stringify-safe-5.0.1.tgz		lodash.keys-3.1.2.tgz			podda-1.2.2.tgz				react-modal-1.7.7.tgz			ua-parser-js-0.7.12.tgz
element-class-0.2.2.tgz			iconv-lite-0.4.17.tgz			keycode-2.1.9.tgz			lodash.pick-4.4.0.tgz			promise-7.1.1.tgz			react-simple-di-1.2.0.tgz		whatwg-fetch-2.0.3.tgz
---------------------------------------------

---------------------------------------------
Running: without-pruning npm-scope

initial install
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.87s.
yarn install v0.23.4
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "@kadira/storybook-ui@3.11.0" has unmet peer dependency "react@^0.14.7 || ^15.0.0".
warning "@kadira/storybook-ui@3.11.0" has unmet peer dependency "react-dom@^0.14.7 || ^15.0.0".
warning "react-fuzzy@0.3.3" has unmet peer dependency "react@^0.14.7 || ^15.0.0".
warning "react-inspector@1.1.2" has unmet peer dependency "react@^0.14.0 || ^15.0.0-0".
warning "react-simple-di@1.2.0" has unmet peer dependency "react@^0.14.0 || ^15.0.0".
warning "react-komposer@2.0.0" has unmet peer dependency "react@^0.14.7 || ^15.0.0".
warning "react-komposer@1.13.1" has unmet peer dependency "react@^0.14.3 || ^15.0.0".
warning "react-modal@1.7.7" has unmet peer dependency "react@^0.14.0 || ^15.0.0".
warning "react-modal@1.7.7" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0".
warning "react-stubber@1.0.0" has unmet peer dependency "react@^0.14.7 || ^15.0.0".
warning "@kadira/react-split-pane@1.4.7" has unmet peer dependency "react@^0.14.8 || ^15.0.0".
warning "@kadira/react-split-pane@1.4.7" has unmet peer dependency "react-dom@^0.14.8 || ^15.0.0".
[4/4] 📃  Building fresh packages...
success Saved lockfile.
✨  Done in 5.14s.

offline install
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.98s.
yarn install v0.23.4
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "@kadira/storybook-ui@3.11.0" has unmet peer dependency "react@^0.14.7 || ^15.0.0".
warning "@kadira/storybook-ui@3.11.0" has unmet peer dependency "react-dom@^0.14.7 || ^15.0.0".
warning "@kadira/react-split-pane@1.4.7" has unmet peer dependency "react@^0.14.8 || ^15.0.0".
warning "@kadira/react-split-pane@1.4.7" has unmet peer dependency "react-dom@^0.14.8 || ^15.0.0".
warning "react-fuzzy@0.3.3" has unmet peer dependency "react@^0.14.7 || ^15.0.0".
warning "react-inspector@1.1.2" has unmet peer dependency "react@^0.14.0 || ^15.0.0-0".
warning "react-komposer@2.0.0" has unmet peer dependency "react@^0.14.7 || ^15.0.0".
warning "react-modal@1.7.7" has unmet peer dependency "react@^0.14.0 || ^15.0.0".
warning "react-modal@1.7.7" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0".
warning "react-komposer@1.13.1" has unmet peer dependency "react@^0.14.3 || ^15.0.0".
warning "react-simple-di@1.2.0" has unmet peer dependency "react@^0.14.0 || ^15.0.0".
warning "react-stubber@1.0.0" has unmet peer dependency "react@^0.14.7 || ^15.0.0".
[4/4] 📃  Building fresh packages...
✨  Done in 4.74s.
@kadira-react-split-pane-1.4.7.tgz	element-class-0.2.2.tgz			immutable-3.8.1.tgz			lodash-es-4.17.4.tgz			mantra-core-1.7.0.tgz			react-inspector-1.1.2.tgz		shallowequal-0.2.2.tgz
@kadira-storybook-ui-3.11.0.tgz		encoding-0.1.12.tgz			invariant-2.2.2.tgz			lodash._getnative-3.9.1.tgz		mobx-2.7.0.tgz				react-komposer-1.13.1.tgz		symbol-observable-1.0.4.tgz
asap-2.0.5.tgz				events-1.1.1.tgz			is-dom-1.0.9.tgz			lodash.assign-4.2.0.tgz			node-fetch-1.6.3.tgz			react-komposer-2.0.0.tgz		ua-parser-js-0.7.12.tgz
babel-runtime-6.23.0.tgz		exenv-1.2.0.tgz				is-stream-1.1.0.tgz			lodash.isarguments-3.1.0.tgz		object-assign-4.1.1.tgz			react-modal-1.7.7.tgz			whatwg-fetch-2.0.3.tgz
classnames-2.2.5.tgz			fbjs-0.8.12.tgz				isomorphic-fetch-2.2.1.tgz		lodash.isarray-3.0.4.tgz		podda-1.2.2.tgz				react-simple-di-1.2.0.tgz
core-js-1.2.7.tgz			fuse.js-2.7.4.tgz			js-tokens-3.0.1.tgz			lodash.keys-3.1.2.tgz			promise-7.1.1.tgz			react-stubber-1.0.0.tgz
core-js-2.4.1.tgz			fuzzysearch-1.0.3.tgz			json-stringify-safe-5.0.1.tgz		lodash.pick-4.4.0.tgz			prop-types-15.5.8.tgz			redux-3.6.0.tgz
create-react-class-15.5.2.tgz		hoist-non-react-statics-1.2.0.tgz	keycode-2.1.9.tgz			lodash.sortby-4.7.0.tgz			qs-6.4.0.tgz				regenerator-runtime-0.10.5.tgz
deep-equal-1.0.1.tgz			iconv-lite-0.4.17.tgz			lodash-4.17.4.tgz			loose-envify-1.3.1.tgz			react-fuzzy-0.3.3.tgz			setimmediate-1.0.5.tgz

Will yarn add missing packages from cache?
yarn cache v0.23.4
success Cleared cache.
✨  Done in 0.88s.
yarn install v0.23.4
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 0.17s.
---------------------------------------------

@agibralter
Copy link
Author

I think the problem I may have been seeing was the "with pruning" true + git. It seems to silently fail...

@griffinmichl
Copy link

I believe there's a mismatch between the new resolve format and how the with pruning feature checks if something should be pruned. It was just pruning every new package for me.

@agibralter
Copy link
Author

Also, it seems that in no circumstances will yarn add a missing package to the offline cache. The only time yarn adds a package to the cache is the first time it adds the package to yarn.lock

@agibralter
Copy link
Author

@arcanis any thoughts on the script I created? Do you get the same behavior when you run it?

@arcanis
Copy link
Member

arcanis commented May 12, 2017

Yep, I'm on it 👍

@arcanis
Copy link
Member

arcanis commented May 12, 2017

Fyi, we're cutting the 0.25 release, which will not ship with a fix. There's various issues in play here, and I'd like to make the patch right, so it will probably ship in the next patch release. I'll keep you updated.

@agibralter
Copy link
Author

😭

😄 okie dokie

@AntiFish03
Copy link

Is there any update to this... I really don't want to get stuck on 0.21.3 I need offline-mirror to work properly and anything above 0.21.3 will fail when using yarn install --offline

@agibralter
Copy link
Author

@arcanis hi there! Any sense on this issue? Is there anything I can do to help?

@arcanis
Copy link
Member

arcanis commented May 31, 2017

@agibralter This issue should be fixed by #3449 (already merged) and #3548 (soon-to-be-merged), which will both be released at the end of the week. Sorry for the delay!

@agibralter
Copy link
Author

Any updates here? Looks like those got merged. Is there a release?

@arcanis
Copy link
Member

arcanis commented Jun 5, 2017

Yep, just waiting for #3578 to be reviewed and merged, otherwise the Windows artifacts won't be correctly generated. Should be tomorrow!

@arcanis
Copy link
Member

arcanis commented Jun 7, 2017

@agibralter We just published the 0.26.1 release! Could you please try and confirm that it fixes the issue on your side? 🙏

@webuniverseio
Copy link

@arcanis works for me with something like: yarn add https://github.com/user/repo.git#tag

@agibralter
Copy link
Author

agibralter commented Jun 12, 2017

@arcanis appears to be working now 🎉🎉🎉

Thank you!!!

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

No branches or pull requests

9 participants