Skip to content

Support Retaining Artifacts Generated During Build#9882

Open
hawkinsw wants to merge 2 commits into
roc-lang:mainfrom
hawkinsw:keep-temp
Open

Support Retaining Artifacts Generated During Build#9882
hawkinsw wants to merge 2 commits into
roc-lang:mainfrom
hawkinsw:keep-temp

Conversation

@hawkinsw

Copy link
Copy Markdown
Contributor

Add the --keep-temp flag to the roc build command to allow users to keep the temporary directories generated during builds. Having such a feature will make it easier for users to inspect intermediate files generated in the process of building a roc program.

@hawkinsw

Copy link
Copy Markdown
Contributor Author

First, thank you to everyone for the work that you have done on roc! I am new to the community, but really enjoying myself so far!

My goal in joining the community, besides learning/using roc, was to work on platform development. I quickly realized I wanted to see the intermediate artifacts generated by the roc compiler. So, I added this flag thinking that it might help a "future someone like me".

I realize that I have not followed the CONTRIBUTING/README.md guide for including exhaustive tests with my PR. However, I didn't want to spam you with a bunch of code if this feature was not something that interests the group.

If there is an interest in accepting this PR, I will absolutely add tests!

Again, I am so excited to be part of the community and hope that my first initial, timid effort at contribution is helpful!

@hawkinsw hawkinsw force-pushed the keep-temp branch 2 times, most recently from 0cf2b0b to d9e3670 Compare July 3, 2026 02:04
Add the `--keep-temp` flag to the `roc build` command to allow users to
keep the temporary directories generated during builds. Having such a
feature will make it easier for users to inspect intermediate files
generated in the process of building a roc program.

@Anton-4 Anton-4 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Welcome @hawkinsw,
I like this feature, if you can add just one test that runs quickly that would be fine :)

@hawkinsw

hawkinsw commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Welcome @hawkinsw, I like this feature, if you can add just one test that runs quickly that would be fine :)

Thank you for the positive feedback! I was so nervous -- I wanted to make a good first impression! I will absolutely add a test.

I may not be able to write it immediately, but I hope you don't interpret that as lack of interest! Just a busy few days with $DAYJOB. Thank you again for the response and for being so welcoming!

@Anton-4

Anton-4 commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

I may not be able to write it immediately

All good, take your time :)

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