Closed SvenDowideit closed 1 month ago
Ah yes, nice catch.
Because of https://github.com/daytonaio/daytona/blob/main/pkg/server/workspaces/create.go#L27, the request fails. We should update the regex to allow _
and .
as well or, more broadly, we should support any characters that are valid in a hosted repository name.
GitHub says this:
Sorry, more info added later
but if i remember correctly, essentially anything is "legal" for git itself - while it might be inconvenient, unicode urls are going to be valid :/
That said, I note that
$ ./main create --name nixconfig https://github.com/SvenDowideit/nix_config
WORKSPACE | ✓ Request submitted
succeeds - so the fix may be to confirm to the user that the repository URL is good, but they should specify a --name <something>
or to use the TUI to ask them for one
but if i remember correctly, essentially anything is "legal" for git itself - while it might be inconvenient, unicode domain names are going to be valid :/
I believe it would be enough to stick to what Github supports.
/bounty $20
/attempt #767
with your implementation plan/claim #767
in the PR body to claim the bountyIf no one is assigned to the issue, feel free to tackle it, without confirmation from us, after registering your attempt. In the event that multiple PRs are made from different people, we will generally accept those with the cleanest code.
Please respect others by working on PRs that you are allowed to submit attempts to.
e.g. If you reached the limit of active attempts, please wait for the ability to do so before submitting a new PR.
If you can not submit an attempt, you will not receive your payout.
Thank you for contributing to daytonaio/daytona!
Add a bounty • Share on socials
Attempt | Started (GMT+0) | Solution |
---|---|---|
🟢 @abhishek818 | Jul 25, 2024, 11:02:55 AM | #775 |
@lbrecic does this issue still exist?
@Apoorv012 , sorry for the late response, @abhishek818 already made attempt at this and brought it to the end. Thank you for your interest and, please, feel free to find other open issues and contribute to Daytona by solving them!
/attempt #767
Algora profile | Completed bounties | Tech | Active attempts | Options |
---|---|---|---|---|
@abhishek818 | 5 daytonaio bounties + 8 bounties from 5 projects |
JavaScript, TypeScript |
Cancel attempt |
💡 @abhishek818 submitted a pull request that claims the bounty. You can visit your bounty board to reward.
🎉🎈 @abhishek818 has been awarded $20! 🎈🎊
Describe the bug
there's some checking that doesn't like repository urls with
_
or.
in them?Expected behavior
this is a private repo I have on github, so it should work :)
Desktop (please complete the following information):