Skip to content

fix: handle empty argument case in shell completion#10124

Closed
kasattejaswi wants to merge 5 commits into
dagger:mainfrom
kasattejaswi:#10107
Closed

fix: handle empty argument case in shell completion#10124
kasattejaswi wants to merge 5 commits into
dagger:mainfrom
kasattejaswi:#10107

Conversation

@kasattejaswi
Copy link
Copy Markdown
Contributor

@kasattejaswi kasattejaswi commented Apr 10, 2025

This is my first PR, please let me know if I am missing something.

This PR addresses bug where the shell was crashing due to a slice bounds out of range [1:0] error in dispatchCall, caused by accessing args[0] when call.Args is empty.

kasattejaswi and others added 5 commits April 10, 2025 11:46
Signed-off-by: Tejaswi Kasat<kasattejasvi@gmail.com>
Signed-off-by: Vikram Vaswani <vikram@dagger.io>
* docs: add documentation for private Go module support

Signed-off-by: Vikram Vaswani <vikram@dagger.io>

* Update code snippet

Signed-off-by: Vikram Vaswani <vikram@dagger.io>

* Updated text

Signed-off-by: Vikram Vaswani <vikram@dagger.io>

* Updated example

Signed-off-by: Vikram Vaswani <vikram@dagger.io>

* Added feedback

Signed-off-by: Vikram Vaswani <vikram@dagger.io>

* Updated code snippet

Signed-off-by: Vikram Vaswani <vikram@dagger.io>

* Updated text

Signed-off-by: Vikram Vaswani <vikram@dagger.io>

* Added feedback

Signed-off-by: Vikram Vaswani <vikram@dagger.io>

* Added feedback

Signed-off-by: Vikram Vaswani <vikram@dagger.io>

---------

Signed-off-by: Vikram Vaswani <vikram@dagger.io>
* add example on github actions integration page to use dagger shell

Signed-off-by: kpenfound <kyle@dagger.io>

* add depot example too

Signed-off-by: kpenfound <kyle@dagger.io>

---------

Signed-off-by: kpenfound <kyle@dagger.io>
* docs: Move content-related images and remove unused images

Signed-off-by: Vikram Vaswani <vikram@dagger.io>

* Fixed file paths

Signed-off-by: Vikram Vaswani <vikram@dagger.io>

---------

Signed-off-by: Vikram Vaswani <vikram@dagger.io>
Co-authored-by: Jeremy Adams <jeremy@dagger.io>
@kasattejaswi kasattejaswi requested a review from a team as a code owner April 10, 2025 06:18
@kasattejaswi kasattejaswi deleted the #10107 branch April 10, 2025 06:18
@jedevc
Copy link
Copy Markdown
Contributor

jedevc commented Apr 10, 2025

👋 hey @kasattejaswi was there a reason you closed this? it looks like the PR did have some wrong commits in it, but you should be able to git rebase -i/etc to get the right ones, instead of needing to close + reopen.

Just as a note for the future!

@kasattejaswi
Copy link
Copy Markdown
Contributor Author

Hey @jedevc I actually messed up with the signing thing. I read that documentation after committing the code. So I thought, it would be cleaner to do things again. Will keep in mind in future.

@jedevc
Copy link
Copy Markdown
Contributor

jedevc commented Apr 10, 2025

For signing, you can actually just do git commit --amend -s to rewrite the last commit with the sign-off 🎉

Generally, it's fine to do lots of rewriting git history in a PR, as long as the final diff + commits look relatively clean! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants