Skip to content

Rely on sbt's run cancellation rather than building our own #4528

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

Merged
merged 1 commit into from
Jul 12, 2021

Conversation

gzm0
Copy link
Contributor

@gzm0 gzm0 commented Jul 11, 2021

Since the upgrade to sbt 1.5.4, Ctrl+C during a run cancels it as
expected. Therefore, we remove our custom implementation of a similar
thing (which was buggy anyways, e.g. #4336).

I believe it reasonable to expect users that need this feature to
upgrade sbt.

@gzm0 gzm0 requested a review from sjrd July 11, 2021 11:20
@sjrd
Copy link
Member

sjrd commented Jul 11, 2021

Do we know exactly what version of sbt introduced the correct Ctrl+C interruption? We should indicate it in the release notes.

@gzm0 gzm0 force-pushed the no-run-interruptible branch from 5d867a3 to bcc1e4e Compare July 11, 2021 18:09
@gzm0
Copy link
Contributor Author

gzm0 commented Jul 11, 2021

Seems like this is the commit that introduced this:
sbt/sbt@8d26bc7 (first stable version: sbt 1.4.0).

I will experimentally verify this.

@gzm0
Copy link
Contributor Author

gzm0 commented Jul 11, 2021

Hmmm... It also seems to work with sbt 1.3.13.

@gzm0
Copy link
Contributor Author

gzm0 commented Jul 11, 2021

It does not work with sbt 1.2.0. Bisecting :)

@gzm0
Copy link
Contributor Author

gzm0 commented Jul 11, 2021

works with sbt 1.3.0.

@gzm0
Copy link
Contributor Author

gzm0 commented Jul 11, 2021

Does not work with sbt 1.2.8. So 1.3.0 is the first one where it works.

@gzm0 gzm0 force-pushed the no-run-interruptible branch from bcc1e4e to 66297e7 Compare July 12, 2021 04:40
Since the upgrade to sbt 1.5.4, Ctrl+C during a run cancels it as
expected. Therefore, we remove our custom implementation of a similar
thing (which was buggy anyways, e.g. scala-js#4336).

I believe it reasonable to expect users that need this feature to
upgrade sbt.
@gzm0 gzm0 force-pushed the no-run-interruptible branch from 66297e7 to 23186b5 Compare July 12, 2021 04:40
@sjrd sjrd merged commit 907d052 into scala-js:master Jul 12, 2021
@gzm0 gzm0 deleted the no-run-interruptible branch August 4, 2021 05:49
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