[go: nahoru, domu]

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

Prevent pipeline.js from moving standaline scripts on build #1897

Merged
merged 3 commits into from
Jan 6, 2020

Conversation

abeisgoat
Copy link
Contributor

There was a minor bug in the firepit-builder which made local development harder because it would remove the standalone/ folder instead of just copying it to the right place.

@googlebot googlebot added the cla: yes Manual indication that this has passed CLA. label Jan 3, 2020
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 65.58% when pulling 1b54a97 on ah-mv-cp into 9ee8f54 on master.

@coveralls
Copy link
coveralls commented Jan 3, 2020

Coverage Status

Coverage remained the same at 65.569% when pulling 3bbd00b on ah-mv-cp into 0357065 on master.

@abeisgoat
Copy link
Contributor Author

@samtstern snuck in a couple more fixed if you can PTAL again

if (isLocalFirepit) {
echo("Using local firepit for testing...");
mkdir("firepit");
rm("-rf", path.join(__dirname, "../vendor/node_modules"));
Copy link
Contributor

Choose a reason for hiding this comment

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

Why dont you need to rm these files anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This whole step was only used when the --local flag was used which was only helpful when this script made a distinction between local (i.e. build from current directory) and remote (build from HEAD on Github). Since this script no longer support the remote flow and now does all work in a temp directory, we can simplify this and allow the cleaning of the temp dir to do this removal.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok makes sense. Can you add a comment to the top of this file explaining what flags are accepted? Since it just examines argv at different times it's kind of hard to know.

@abeisgoat abeisgoat merged commit 859e966 into master Jan 6, 2020
@abeisgoat abeisgoat deleted the ah-mv-cp branch January 6, 2020 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Manual indication that this has passed CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants