Title: Bug: subfolders in example templates are not bundled · Issue #1669 · coder/coder · GitHub
Open Graph Title: Bug: subfolders in example templates are not bundled · Issue #1669 · coder/coder
X Title: Bug: subfolders in example templates are not bundled · Issue #1669 · coder/coder
Description: OS Information OS: Debian 11 Browser (if applicable): N/A Architecture: AMD64 coder --version: root@coder-v2:~/coder-config/templates/docker-image-builds# coder --version Coder v0.5.11-devel+a8a8f9db Fri May 20 23:39:51 UTC 2022 https://...
Open Graph Description: OS Information OS: Debian 11 Browser (if applicable): N/A Architecture: AMD64 coder --version: root@coder-v2:~/coder-config/templates/docker-image-builds# coder --version Coder v0.5.11-devel+a8a8f9...
X Description: OS Information OS: Debian 11 Browser (if applicable): N/A Architecture: AMD64 coder --version: root@coder-v2:~/coder-config/templates/docker-image-builds# coder --version Coder v0.5.11-devel+a8a8f9...
Opengraph URL: https://github.com/coder/coder/issues/1669
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug: subfolders in example templates are not bundled","articleBody":"## OS Information\r\n\r\n- OS: Debian 11\r\n- Browser (if applicable): N/A\r\n- Architecture: AMD64\r\n- `coder --version`:\r\n\r\n ```sh\r\n root@coder-v2:~/coder-config/templates/docker-image-builds# coder --version\r\n Coder v0.5.11-devel+a8a8f9db Fri May 20 23:39:51 UTC 2022\r\n https://github.com/coder/coder/commit/a8a8f9dbf30cbbdfe604d00f56870086d7316d4c\r\n ```\r\n\r\n## Steps to Reproduce\r\n\r\nInstall steps\r\n1. Create a release from main branch: `goreleaser release --rm-dist --snapshot`\r\n1. Run/install Coder from the built `dist/` artifacts (--dev flag will do)\r\n\r\nRepro steps\r\n1. `coder templates init`\r\n1. Select `Develop in Docker with custom image builds`\r\n1. Try to cd to `./docker-image-builds/images`. The folder is missing. This breaks the template.\r\n\r\n## Expected\r\n\r\nSubfolder contents are bundled, such as [./examples/docker-image-builds/images/](https://github.com/coder/coder/tree/main/examples/docker-image-builds/images)\r\n\r\n## Actual\r\n\r\nThe `./docker-image-builds/images` folder is missing when you clone from `coder templates init`\r\n\r\n## Notes\r\n\r\nUsers can workaround this and use the example template by cloning the repo directly. The `images/` subdirectory is bundled correctly in the deployment\r\n\r\n```sh\r\ngit clone git@github.com:coder/coder.git\r\ncd ./coder/examples/docker-image-builds\r\ncoder templates create\r\n```\r\n","author":{"url":"https://github.com/bpmct","@type":"Person","name":"bpmct"},"datePublished":"2022-05-23T15:33:46Z","url":"https://github.com/coder/coder/issues/1669"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e21eb9c4-a7db-9d0d-7b77-053f0c5825be |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A95E:3DA1E8:116755:172E4C:6B01846C |
| html-safe-nonce | 89ef6061f09042da0e25e6e44db224db188a9338dead4749f10b9e6b8ee55322 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTVFOjNEQTFFODoxMTY3NTU6MTcyRTRDOjZCMDE4NDZDIiwidmlzaXRvcl9pZCI6Ijc2NTM4NDI4MDgwMjQ5NTgwNjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ddd7e078c3966a71dab45617a2bdc5a9734e5773111f481fce93ba78ecb2760f |
| hovercard-subject-tag | issue:1245357613 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/1669/issue_layout |
| twitter:image | https://opengraph.githubassets.com/158ec7dfd3f76bdf3e3dc194268e21098d645d9502bb165e96280a40af183e8f/coder/coder/issues/1669 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/158ec7dfd3f76bdf3e3dc194268e21098d645d9502bb165e96280a40af183e8f/coder/coder/issues/1669 |
| og:image:alt | OS Information OS: Debian 11 Browser (if applicable): N/A Architecture: AMD64 coder --version: root@coder-v2:~/coder-config/templates/docker-image-builds# coder --version Coder v0.5.11-devel+a8a8f9... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bpmct |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width