Skip to content
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

project dump panic: runtime error: index out of range [1] with length 1 #418

Open
Robin-Marquardt opened this issue Oct 11, 2024 · 3 comments
Labels
dependencies Pull requests that update a dependency file

Comments

@Robin-Marquardt
Copy link

PHP Version

8.3

Shopware Version

6.6.6.1

Plugin Version

0.4.55

Actual behaviour

MySQL Version: 8.3
Shopware Version: 6.6.6.1
Command:
shopware-cli project dump shopware_xxx --username root --password xxx --host xxx.xxx.xxx.xxx --skip-lock-tables --output dump_manually.sql

panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
github.com/doutorfinancas/go-mad/generator.service.ReplaceStringWithFakerWhenRequested({{{0x14e7be8, 0xc00042f2c0}}}, {0xc0005a5140, 0x13})
github.com/doutorfinancas/[email protected]/generator/faker.go:57 +0x572
github.com/doutorfinancas/go-mad/database.(*mySQL).getProperEscapedValue(0xc000222900, 0xc0000da918?, {0xc000136a58?, 0x1?}, {0xc0005bc319?, 0x2?})
github.com/doutorfinancas/[email protected]/database/mysql.go:415 +0xe6
github.com/doutorfinancas/go-mad/database.(*mySQL).dumpTableData(0xc000222900, {0x14e10a0, 0xc00043a320}, {0xc000136a58, 0x8})
github.com/doutorfinancas/[email protected]/database/mysql.go:388 +0x6b2
github.com/doutorfinancas/go-mad/database.(*mySQL).dumpData(0xc000222900, {0x14e10a0, 0xc00043a320}, {0xc0002f4000, 0x1463}, {0xc000136a58, 0x8})
github.com/doutorfinancas/[email protected]/database/mysql.go:279 +0x19a
github.com/doutorfinancas/go-mad/database.(*mySQL).Dump(0xc000222900, {0x14e10a0, 0xc00043a320})
github.com/doutorfinancas/[email protected]/database/mysql.go:148 +0x645
github.com/FriendsOfShopware/shopware-cli/cmd/project.init.func12(0x1c9d820, {0xc0001613f0, 0x1, 0x12bbc41?})
github.com/FriendsOfShopware/shopware-cli/cmd/project/project_dump.go:191 +0x1db1
github.com/spf13/cobra.(*Command).execute(0x1c9d820, {0xc000161340, 0xb, 0xb})
github.com/spf13/[email protected]/command.go:985 +0xaaa
github.com/spf13/cobra.(*Command).ExecuteC(0x1c95f60)
github.com/spf13/[email protected]/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/[email protected]/command.go:1041
github.com/spf13/cobra.(*Command).ExecuteContext(...)
github.com/spf13/[email protected]/command.go:1034
github.com/FriendsOfShopware/shopware-cli/cmd.Execute({0x14ea688, 0x1d269e0})
github.com/FriendsOfShopware/shopware-cli/cmd/root.go:39 +0x169
main.main()
github.com/FriendsOfShopware/shopware-cli/main.go:10 +0x25

Expected behaviour

working Database Dump :)

Steps to Reproduce?

Command: shopware-cli project dump shopware_xxx --username root --password xxx --host xxx.xxx.xxx.xxx --skip-lock-tables --output dump_manually.sql

@shyim
Copy link
Member

shyim commented Oct 11, 2024

do you have anything configured in the shopware-project.yml?

@Robin-Marquardt
Copy link
Author

Robin-Marquardt commented Oct 11, 2024

nope the file not exists
I find it exciting why he calls the faker although we have NOT set --anonymize

@shyim
Copy link
Member

shyim commented Oct 24, 2024

doutorfinancas/go-mad#54

@shyim shyim added the dependencies Pull requests that update a dependency file label Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

2 participants