Skip to content

Conversation

@johnstcn
Copy link
Member

@johnstcn johnstcn commented Dec 24, 2025

Updates the coder template to use coder exp sync to synchronize coder_script startup dependencies.

To test this out, visit /templates/coder/coder/workspace?version=4c1a1f32-1136-496f-8b40-51c1cf501385

@johnstcn johnstcn self-assigned this Dec 24, 2025
Comment on lines +368 to +369
coder exp sync start git-clone
coder exp sync complete git-clone
Copy link
Member Author

Choose a reason for hiding this comment

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

For use-cases like this where you have an existing module that has no other dependencies, it would be nice to be able to just coder exp sync complete without having to start.

trap 'coder exp sync complete install-deps' EXIT
coder exp sync want install-deps git-clone
coder exp sync start install-deps
Copy link
Member Author

Choose a reason for hiding this comment

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

coder exp sync start $UNIT --want a,b,c might also be a nicer syntax.

@johnstcn johnstcn marked this pull request as ready for review December 24, 2025 15:55
# Allow synchronization between scripts.
trap 'touch /tmp/.coder-startup-script.done' EXIT
trap 'coder exp sync complete agent-startup' EXIT
Copy link
Contributor

Choose a reason for hiding this comment

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

A comment would be helpful here.

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.

4 participants