dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

Support GitHub Codespaces

Open jthegedus opened this issue 4 years ago • 0 comments

Is your feature request related to a problem? Please describe.

I have access to GitHub Codespaces (VSCode in browser hosted by GitHub). Codespaces looks for <user>/dotfiles repo on launch and clones this into the environment. While successfully cloning, it does not run the installation steps in this repo as it is not found by Codespaces install methods:

When you create a new codespace, GitHub clones your dotfiles repository to the codespace environment, and looks for one of the following files to set up the environment.

  • install.sh
  • install
  • bootstrap.sh
  • bootstrap
  • setup.sh
  • setup If none of these files are found, then any files or folders in dotfiles starting with . are symlinked to the codespace's ~ or $HOME directory. Any changes to your dotfiles repository will apply only to each new codespace, and do not affect any existing codespace.

source: https://docs.github.com/en/github/developing-online-with-codespaces/personalizing-codespaces-for-your-account

Describe the solution you'd like

Add a wrapper script in the repo root which Codespace will find and run

jthegedus avatar Aug 14 '20 10:08 jthegedus