-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat(dogfood): use coder exp sync to synchronize scripts #21384
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
base: main
Are you sure you want to change the base?
Conversation
| coder exp sync start git-clone | ||
| coder exp sync complete git-clone |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
| # Allow synchronization between scripts. | ||
| trap 'touch /tmp/.coder-startup-script.done' EXIT | ||
| trap 'coder exp sync complete agent-startup' EXIT |
There was a problem hiding this comment.
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.
Updates the
codertemplate to usecoder exp syncto synchronizecoder_scriptstartup dependencies.To test this out, visit
/templates/coder/coder/workspace?version=4c1a1f32-1136-496f-8b40-51c1cf501385