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

error on package-build #8

Open
flicksolutions opened this issue Jun 12, 2023 · 5 comments
Open

error on package-build #8

flicksolutions opened this issue Jun 12, 2023 · 5 comments

Comments

@flicksolutions
Copy link

flicksolutions commented Jun 12, 2023

Hello Tuttle Maintainers

I'm running existdb 6.2.0 and tuttle 1.2.0.

The deployment of the package I'm trying to integrate with tuttle breaks because of the following error during build:

It is a type error if, during the static analysis phase, an expression is found to have a static type that is not appropriate for the context in which the expression occurs, or during the dynamic evaluation phase, the dynamic type of a value does not match a required type as specified by the matching rules in 2.5.4 SequenceType Matching. checking function parameter 1 in call repo:undeploy(untyped-value-check[xs:string, $package]): XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: repo:undeploy($pkgName as xs:string) element(). Expected cardinality: exactly one, got 0.

When I'm building the package by hand with Apache Ant the installation via the package-manager works flawless - when I'm trying to build it by hand with just xar - the installation with the package-manager gives me a similar error to the one above.

Is there a Package Repository that works and integrates in TEI-Publisher?

Thank you for your support

Sebastian

@windauer
Copy link
Member

@flicksolutions I fear I did not understand what exactly your problem is. I just downloaded tuttle 1.2.0 from here https://github.com/eeditiones/tuttle/releases/download/v1.2/tuttle-1.2.0.xar and installed in an eXist-db 6.2.0 distribution and everything seemed to work perfectly fine.

if you wanna build Tuttle on your own please make sure to follow the build steps here: https://github.com/eeditiones/tuttle#building-and-installation or are you having issues creating your own XAR application?

@flicksolutions
Copy link
Author

@windauer Thank you for coming back to me!
I'm sorry if I was being unclear:
I've built a data-repository (with XML-Files for a project) on github that I am trying to install. My repo has the same structure as this template: https://github.com/eeditiones/tei-publisher-data-template
When I pack the repo myself with ant and upload it to exist I can install it. With tuttle I'm running into the error I described.

Can you maybe provide a data-repo that works with tuttle 1.2.0? This would help me find out, what I did wrong.

Thanks in advance!

@flicksolutions
Copy link
Author

bear in mind: pulling the data repository from github works. I find a staging-folder of the repository in exide. It's just the installation-process that doesn't work.

@windauer
Copy link
Member

ok, got it, pulling the resources from a file from git and assembling them via tuttle is still very much experimental cause creating a xar files can be done a million ways (with ant, node, by hand .....). And sadly I can't provide you any data-xar showing it and I don't have the time to create one.

What should work perfectly fine and does for me is to use Tuttle to keep my eXist-db in sync with a given Github / Gitlab repo but without the need to build a XAR file. Following the Readme worked perfectly fine last time I checke. I did test it back then with https://github.com/eeditiones/tuttle-sample-data

@duncdrum
Copy link
Contributor

@flicksolutions I have now run into a similar error. We hope to include a fix with the next release. It requires a bit more debugging and work before it's ready though.

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

No branches or pull requests

3 participants