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

[eas-json] Detect dependency cycle for build profiles #283

Merged

Conversation

wkozyra95
Copy link
Contributor

@wkozyra95 wkozyra95 commented Mar 22, 2021

Checklist

Why

Detecting deps cycle does not work

How

delete buildProfile.extends was removing extends keyword on first read fo a profile and by doing that it also removed cycle

Test Plan

“override”: {
  “workflow”: “generic”,
  “extends”: “override”,

eas build

@wkozyra95 wkozyra95 requested a review from dsokal March 22, 2021 09:39
@github-actions
Copy link

github-actions bot commented Mar 22, 2021

Size Change: +1.02 kB (0%)

Total Size: 32.8 MB

Filename Size Change
./packages/eas-cli/dist/eas-linux-x64.tar.gz 32.8 MB +1.02 kB (0%)

compressed-size-action

@@ -150,15 +150,14 @@ export class EasJsonReader {
if (!buildProfile) {
throw new Error(`There is no profile named ${buildProfileName} for platform ${platform}`);
}
const baseProfileName = buildProfile.extends;
delete buildProfile.extends;
const { extends: baseProfileName, ...overrideBuildProfile } = buildProfile;
Copy link
Contributor

Choose a reason for hiding this comment

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

override is a verb. Maybe sth like rest, buildProfileRest, ...?

@wkozyra95 wkozyra95 requested a review from dsokal March 22, 2021 09:44
@wkozyra95 wkozyra95 merged commit b6c300b into main Mar 22, 2021
@wkozyra95 wkozyra95 deleted the @wkozyra95/fix-detecting-dependency-cycle-for-eas-json branch March 22, 2021 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants