Skip to content

Commit

Permalink
fix: remove unused binarySource=auto (#8461)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Feb 4, 2021
1 parent 6ab2b02 commit df2a31c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions lib/config/__snapshots__/migration.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ Object {
"baseBranches": Array [
"next",
],
"binarySource": "global",
"branchName": "{{{branchPrefix}}}{{{additionalBranchPrefix}}}{{{branchTopic}}}",
"branchPrefix": "renovate/",
"commitMessage": "{{#if semanticCommitType}}{{semanticCommitType}}{{#if semanticCommitScope}}({{semanticCommitScope}}){{/if}}: {{/if}}some commit message",
Expand Down
6 changes: 3 additions & 3 deletions lib/config/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,11 @@ const options: RenovateOptions[] = [
{
name: 'binarySource',
description:
'Where to source binaries like `npm` and `yarn` from, choices are `auto`, `global` and `docker`.',
'Controls whether third party tools like npm or Gradle are called directly, or via Docker sidecar containers.',
admin: true,
type: 'string',
allowedValues: ['auto', 'global', 'docker'],
default: 'auto',
allowedValues: ['global', 'docker'],
default: 'global',
},
{
name: 'redisUrl',
Expand Down
1 change: 1 addition & 0 deletions lib/config/migration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ describe('config/migration', () => {
suppressNotifications: ['lockFileErrors', 'prEditNotification'],
automerge: 'none' as never,
automergeMajor: false,
binarySource: 'auto',
automergeMinor: true,
automergePatch: true,
masterIssue: 'true',
Expand Down
2 changes: 2 additions & 0 deletions lib/config/migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,8 @@ export function migrateConfig(
migratedConfig.suppressNotifications || [];
migratedConfig.suppressNotifications.push('deprecationWarningIssues');
}
} else if (key === 'binarySource' && val === 'auto') {
migratedConfig.binarySource = 'global';
}
}
if (migratedConfig.endpoints) {
Expand Down
1 change: 0 additions & 1 deletion lib/util/exec/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { promisify } from 'util';
export type Opt<T> = T | null | undefined;

export enum BinarySource {
Auto = 'auto',
Docker = 'docker',
Global = 'global',
}
Expand Down

0 comments on commit df2a31c

Please sign in to comment.