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

Use read_file macro instead using OS-dependent cat #296

Merged
merged 2 commits into from
Sep 19, 2019

Conversation

Sija
Copy link
Contributor

@Sija Sija commented Sep 16, 2019

SSIA

@ysbaddaden
Copy link
Contributor

Looks good. Yet, CI is red. Maybe master got broken, but I'd like CI to be green before merging PR.

@Sija
Copy link
Contributor Author

Sija commented Sep 16, 2019

Sure, that's understandable, yet AFAICS it's an unrelated fail - it fails due to the changes related to displaying error messages.

@ysbaddaden
Copy link
Contributor

Would you be so kind to provie a PR to fix it? That would highly appreciated!

@Sija
Copy link
Contributor Author

Sija commented Sep 16, 2019

@ysbaddaden Sure, np.

btw, seems like --no-color switch ain't working:

  1) Failure:

BuildCommandTest#test_reports_error_when_target_failed_to_compile [test/integration/build_test.cr:70]:

Expected "Syntax error" to match "I: Dependencies are satisfied\nI: Building: app\nE: Error target app failed to compile:\nIn \e[4msrc/cli.cr:1:8\e[0m\n\n\e[2m 1 | \e[0m\e[1ma = ......\e[0m\n            \e[32;1m^\e[0m\n\e[33;1mError: unexpected token: ...\e[0m\n\n"

@ysbaddaden
Copy link
Contributor

No colors only affects shards (logs have no colors) not the crystal build command (errors now always have colors, despite not being a tty).

@ysbaddaden
Copy link
Contributor

The cat call breaks at compile time if the VERSION file is missing. What happens with read_file macro?

@straight-shoota
Copy link
Member

read_file fails as well.

@ysbaddaden ysbaddaden merged commit 143f2e4 into crystal-lang:master Sep 19, 2019
@ysbaddaden
Copy link
Contributor

Thank you!

@Sija Sija deleted the patch-1 branch September 19, 2019 09:04
@bcardiff bcardiff added this to the v0.10.0 milestone Mar 27, 2020
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.

None yet

5 participants