Skip to content

Conversation

@alexarchambault
Copy link
Contributor

No description provided.

@alexarchambault alexarchambault merged commit 6aa3e86 into master May 14, 2021
@alexarchambault alexarchambault deleted the develop branch May 14, 2021 17:15
philwalk added a commit to philwalk/scala-cli that referenced this pull request Jul 24, 2025
Gedochao added a commit that referenced this pull request Jul 31, 2025
* fix for 3789 - script if .sc, or (if no extension) has shebang

* verify-non-directory in shebang-test

* reorder isDir case ahead of isShebangScript

* added integration test for enabled case

* restore line endings

* adjust new test

* quote msg

* fix quoted msg

* Apply suggestions from code review

suggested changes

Co-authored-by: Piotr Chabelski <ged.subfan@gmail.com>

* remove isScript extra paren

* add script.sources property

* fix failing CI / Checks test due to import order

* revert treating .scala files as Script

* revert attempt #2

* revert /Inputs.scala changes

* Apply suggestions from code review

Co-authored-by: Piotr Chabelski <ged.subfan@gmail.com>

* legal script extension restricted to .sc or empty string

* remove unrelated code

* cleanup imports

* corrected hasShebang check

* corrected hasShebang test

* hasShebang adapted for /dev/fd

* input sc script def

* fix tests

* avoid hasShebang test of streamed bytes

* disable hasShebang test for streams

* Update modules/integration/src/test/scala/scala/cli/integration/RunScriptTestDefinitions.scala

Co-authored-by: Piotr Chabelski <ged.subfan@gmail.com>

---------

Co-authored-by: Piotr Chabelski <ged.subfan@gmail.com>
Co-authored-by: Phil <philwalk@gmail.com>
Gedochao added a commit that referenced this pull request Aug 4, 2025
* fix for 3789 - script if .sc, or (if no extension) has shebang

* verify-non-directory in shebang-test

* reorder isDir case ahead of isShebangScript

* added integration test for enabled case

* restore line endings

* adjust new test

* quote msg

* fix quoted msg

* Apply suggestions from code review

suggested changes

Co-authored-by: Piotr Chabelski <ged.subfan@gmail.com>

* remove isScript extra paren

* add script.sources property

* fix failing CI / Checks test due to import order

* revert treating .scala files as Script

* revert attempt #2

* revert /Inputs.scala changes

* Apply suggestions from code review

Co-authored-by: Piotr Chabelski <ged.subfan@gmail.com>

* add docs test to scala-script.md

* remove brackets from regex

* rename new test as show-sources.md

* check fix

* sclicheck tests for .sc, .scala, and .java sources

* fine-tuned show-sources.md

* additional examples in show-sources.md

---------

Co-authored-by: Piotr Chabelski <ged.subfan@gmail.com>
Co-authored-by: Phil <philwalk@gmail.com>
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