-
Notifications
You must be signed in to change notification settings - Fork 259
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
Add devcontainer/codespace config #857
Conversation
Thanks @spenserblack - just found out about GH codespaces thanks to you 👍 We may need to add a few things to make it a more "self-sufficient" dev container, I'm thinking of the tooling for onefetch.dev -> node, npm, svelte extensions... This can be done in the future and shouldn't block this PR. |
Great idea! I still have a lot more to learn, but I think it's possible to have multiple dev container configurations per repo. So potentially one can have a codespace for onefetch, and one for onefetch.dev. |
Oh, BTW, might want to check out the prebuild setting. More reading: https://docs.github.com/en/codespaces/prebuilding-your-codespaces |
That's right, I'll create a separate dev container config under
I'll definitely set that up 👍 |
Does the simplified devcontainer (50bb474) work for you? For me it fails on libz-sys
|
Yes, I'm really sorry about that, I should have tested it before pushing it --> I just reverted it 7cc7db5 BTW, another issue when running
We may need to add |
I think that's probably best put in a // .devcontainer/devcontainer.json
// ...
"postCreateCommand": ".devcontainer/postCreate.sh",
// ... #!/bin/bash
# .devcontainer/postCreate.sh
git config --global --add safe.directory $PWD
# etc.
I didn't know this at first (which is why I was pushing everything to my fork's |
Thanks for the help, if it's just for one command, I think we can skip the shell script and put the it directly in the .json file c9e8223 |
@o2sh FYI: https://github.com/orgs/community/discussions/39697 One thing I noticed is that prebuilds count against your storage. Perhaps you want to disable and delete prebuilds (knowing that they're billable, they only seem worth it for orgs TBH 🤷) |
I guess that explains all the notifications I was getting from GH telling me to increase my Codespaces storage usage 😅 I'll delete them, thanks for letting me know @spenserblack |
This should allow contributors to use GitHub codespaces to contribute to onefetch.