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

Update bl to v4.0.0, rename a few vars, use template literals. #1

Closed
wants to merge 0 commits into from
Closed

Update bl to v4.0.0, rename a few vars, use template literals. #1

wants to merge 0 commits into from

Conversation

XhmikosR
Copy link
Contributor

@XhmikosR XhmikosR commented Sep 27, 2019

The thing is that this breaks at least on Windows if you use single quotes for the command. So, I'm not sure if this will cause any breakage upstream.

And being that we don't have CI yet on https://github.com/nodejs/changelog-maker I can't tell for sure...

PS. You need to register for GitHub Actions CI.
PPS. I had to use 8.16.1 because there's a bug in actions/setup-node and installs Node.js 8.10 which lacks npm ci

@XhmikosR
Copy link
Contributor Author

XhmikosR commented Sep 27, 2019

BTW I also tried using the cross-spawn package here and it also failed with the single quotes, which I'd expect it to escape. But maybe I missed something.

I'll wait until @rvagg you can have a look :)

To see this in action see https://github.com/XhmikosR/gitexec/actions

@XhmikosR XhmikosR marked this pull request as ready for review September 29, 2019 12:22
@rvagg
Copy link
Owner

rvagg commented Sep 30, 2019

You should try to keep the scope of individual commits relatively isolated, it's really hard to review and tbh I'd even prefer to deal with these things as separate PRs. I don't really mind what you've done here, it's just hard to extract the important pieces.

From what I can tell the essence of what you're proposing this:

  const child = spawn('bash', [ '-c', gitcmd ], { env: process.env, cwd: repoPath })
  const child = spawn(gitcmd, { env: process.env, cwd: repoPath, shell: true })

So just switching from a bash -c to a shell:true. That seems entirely reasonable to me.

Would you mind trying to pull this into 3 separate commits? The spawn change in one, the lint, style, and dependency changes in another and the CI in a third? I know it's a bit of extra work but I'd be much more comfortable being able to see these things in isolation and judging them each on their own merit.

@XhmikosR
Copy link
Contributor Author

NP, this was mostly opened as a preview. I'll split the patches now.

@XhmikosR
Copy link
Contributor Author

@rvagg done. This PR should be merged last and might need a rebase.

@XhmikosR XhmikosR changed the title Add CI, update all the stuff and make things work on Windows @XhmikosR Update bl to v4.0.0, rename a few vars, use template literals. Sep 30, 2019
@XhmikosR XhmikosR changed the title @XhmikosR Update bl to v4.0.0, rename a few vars, use template literals. Update bl to v4.0.0, rename a few vars, use template literals. Sep 30, 2019
@rvagg rvagg closed this Oct 2, 2019
@rvagg
Copy link
Owner

rvagg commented Oct 2, 2019

Found a weird bug in GitHub's push-to-fork functionality, I pushed to your master and it closed this PR, believing that there was no diff to my master I suspect. Anyway, managed to work my way out of it and this is now on master and landed.

Thanks for fixing the single-line if statements in this one btw, nice work all up. Will get a release out but I'm going to bump semver-major because of the new Node >=8 restriction.

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.

2 participants