Skip to content

Add checks for all cached packages #964

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

Merged
merged 1 commit into from
Sep 28, 2015

Conversation

rosen-vladimirov
Copy link
Contributor

NPM Cache gets broken in some cases. Make sure to validate the sahsum of the cached package. Also validate specific directories in our tns related packages from npm, for example tns runtimes must have "framework" directory in the root of the unpacked dir.

Fixes NativeScript/NativeScript#763

@rosen-vladimirov rosen-vladimirov self-assigned this Sep 25, 2015
@rosen-vladimirov rosen-vladimirov added this to the 1.4.0 (Under review) milestone Sep 25, 2015
@ns-bot
Copy link

ns-bot commented Sep 25, 2015

Test PASSed.

this.$fs.enumerateFilesInDirectorySync(path.join(packagePath, "framework")).length > 1;
(!additionalDirectoryToCheck ||
(this.$fs.exists(path.join(packagePath, additionalDirectoryToCheck)).wait() &&
this.$fs.enumerateFilesInDirectorySync(path.join(packagePath, additionalDirectoryToCheck)).length > 1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be >= 1 here?

NPM Cache gets broken in some cases. Make sure to validate the sahsum of the cached package. Also validate specific directories in our `tns` related packages from npm, for example tns runtimes must have "framework" directory in the root of the unpacked dir.

Fixes NativeScript/NativeScript#763
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/always-check-cached-package branch from 52297de to ef1048b Compare September 25, 2015 11:19
@ns-bot
Copy link

ns-bot commented Sep 25, 2015

Test PASSed.

@ligaz
Copy link

ligaz commented Sep 25, 2015

👍

rosen-vladimirov added a commit that referenced this pull request Sep 28, 2015
…hed-package

Add checks for all cached packages
@rosen-vladimirov rosen-vladimirov merged commit 78cfb68 into master Sep 28, 2015
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/always-check-cached-package branch September 28, 2015 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants