Skip to content

Conversation

matifali
Copy link
Member

This is a good practice I think and speeds up shutdown time and extra downloads from the registry.

@matifali matifali changed the title chore: add count to modules to prevent download on workspace stop chore: prevent downloading modules on workspace stop Dec 18, 2024
@matifali matifali changed the title chore: prevent downloading modules on workspace stop chore(dogfood): prevent downloading modules on workspace stop Dec 18, 2024
@@ -24,7 +24,7 @@ locals {
}

repo_base_dir = data.coder_parameter.repo_base_dir.value == "~" ? "/home/coder" : replace(data.coder_parameter.repo_base_dir.value, "/^~\\//", "/home/coder/")
repo_dir = replace(module.git-clone.repo_dir, "/^~\\//", "/home/coder/")
repo_dir = replace(try(module.git-clone[0].repo_dir, ""), "/^~\\//", "/home/coder/")
Copy link
Member Author

Choose a reason for hiding this comment

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

This was needed as the module gets destroyed on the stop.

@matifali matifali merged commit 7697005 into main Dec 19, 2024
34 checks passed
@matifali matifali deleted the atif/dogfood-count-modules branch December 19, 2024 07:46
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants