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

Revert "Skip update checks for bundled packages" #96

Merged
merged 1 commit into from
Sep 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions spec/upgrade-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,23 +76,6 @@ describe('apm upgrade', () => {
});
});

it('does not display updates for "core" packages', () => {
fs.writeFileSync(path.join(packagesDir, 'core-package', 'package.json'), JSON.stringify({
name: 'core-package',
version: '1.0',
repository: 'https://github.com/pulsar-edit/pulsar'
}));
const callback = jasmine.createSpy('callback');
apm.run(['upgrade', '--list', '--no-color'], callback);

waitsFor('waiting for upgrade to complete', 600000, () => callback.callCount > 0);

runs(() => {
expect(console.log).toHaveBeenCalled();
expect(console.log.argsForCall[1][0]).toContain('empty');
});
});

it('does not display updates for packages whose engine does not satisfy the installed Atom version', () => {
fs.writeFileSync(path.join(packagesDir, 'test-module', 'package.json'), JSON.stringify({
name: 'test-module',
Expand Down
6 changes: 0 additions & 6 deletions src/upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,6 @@ available updates.\
}

getLatestVersion(pack, callback) {
// We want to bail on checking for updates of any packages that come with the editor
// This can generally be detected by checking if the repository is that of Pulsar itself
if (pack.repository === "https://github.com/pulsar-edit/pulsar") {
return callback();
}

const requestSettings = {
url: `${config.getAtomPackagesUrl()}/${pack.name}`,
json: true
Expand Down