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

Misconfigured 'assemblyOutputPath' can be dangerous #523

Merged
merged 2 commits into from
Mar 16, 2024

Conversation

hygt
Copy link

@hygt hygt commented Mar 15, 2024

Hello,

In a complete PEBKAC moment I essentially did

assembly / assemblyOutputPath := file(".")

which resulted in sawing off the proverbial and also literal branch I was sitting on.

I don't believe this is the behavior anyone would ever intend.

Shootout to IntellIJ IDEA's local history feature.

@hygt
Copy link
Author

hygt commented Mar 15, 2024

Also relates to #216

Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

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

Thanks!

@eed3si9n eed3si9n merged commit 56f7e71 into sbt:develop Mar 16, 2024
dongjoon-hyun pushed a commit to apache/spark that referenced this pull request Oct 15, 2024
### What changes were proposed in this pull request?
The pr aims to upgrade `sbt-assembly` from `2.2.0` to `2.3.0`

### Why are the changes needed?
- `sbt-assembly`, the full release notes: https://github.com/sbt/sbt-assembly/releases/tag/v2.3.0
- Bug fixed:
  Fixes assembly not creating parent directories by Roiocam in sbt/sbt-assembly#525
  Throws error when a misconfigured assemblyOutputPath is detected by hygt in sbt/sbt-assembly#523

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Pass GA.

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes #48409 from panbingkun/SPARK-49922.

Authored-by: panbingkun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
himadripal pushed a commit to himadripal/spark that referenced this pull request Oct 19, 2024
### What changes were proposed in this pull request?
The pr aims to upgrade `sbt-assembly` from `2.2.0` to `2.3.0`

### Why are the changes needed?
- `sbt-assembly`, the full release notes: https://github.com/sbt/sbt-assembly/releases/tag/v2.3.0
- Bug fixed:
  Fixes assembly not creating parent directories by Roiocam in sbt/sbt-assembly#525
  Throws error when a misconfigured assemblyOutputPath is detected by hygt in sbt/sbt-assembly#523

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Pass GA.

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes apache#48409 from panbingkun/SPARK-49922.

Authored-by: panbingkun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
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