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

Invalid Package Dependency #43

Closed
tylocook opened this issue Oct 4, 2019 · 6 comments
Closed

Invalid Package Dependency #43

tylocook opened this issue Oct 4, 2019 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@tylocook
Copy link

tylocook commented Oct 4, 2019

I am not incredibly well versed in how Unity's fancy new Package Manager works, but when I follow your instructions on attempting to add glTFast to my manifest.json file, it returns the following error.

An error occurred while resolving packages:
  Package com.atteneder.gltfast@https://github.com/atteneder/glTFast.git has invalid dependencies:
    com.atteneder.draco: Package [com.atteneder.draco@1.0.1] cannot be found
@tylocook
Copy link
Author

tylocook commented Oct 4, 2019

I see you made a change 19 days ago to "fix" this, but I'm curious as to how Unity tries to resolve seeing it in your packages.json file...

8ef4fb7

@atteneder atteneder added the bug Something isn't working label Oct 6, 2019
@atteneder atteneder self-assigned this Oct 6, 2019
@atteneder
Copy link
Owner

Hy @tylocook

thanks a lot for pointing this out. I tested an installation from scratch myself and could confirm the issue. Turns you, you also need to add the DracoUnity package manually, which is a dependency. Add this line to your package manifest:

"com.atteneder.draco": "https://gitlab.com/atteneder/DracoUnity.git",

I updated the installation instructions as well.

Please let me know if this fixes your problem.

regards,
atti

@tylocook
Copy link
Author

tylocook commented Oct 6, 2019 via email

@atteneder
Copy link
Owner

Oh well :(

I can't fix this before October 21st, since I don't have access to a Windows Box until then.

I switched to build via GitHub Actions recently. Seems like the build is not configured correctly.

@tylocook
Copy link
Author

tylocook commented Oct 10, 2019 via email

@atteneder
Copy link
Owner

I couldn't reproduce the issue, but I have a suspicion:

Please navigate to the DLL file and inspect it. Check if it's only 100-200 bytes and its content looks something like this:

version https://git-lfs.github.com/spec/v1
oid sha256:4cac19622fc3ada9c0fdeadb33f88f367b541f38b89102a3f1261ac81fd5bcb5
size 84977953

If so, the package was not cloned properly. Make sure you have a recent version of GIT and GIT LFS installed on your system, since Unity may use your system's GIT to clone.

hth

If it's still not working, open another issue. The original one is solved.

atteneder added a commit that referenced this issue Oct 18, 2023
* refactor: Renamed Extensions to Add-on, as the pattern is not necessarily centered around glTF extensions and makes that distinction clearer.

* feat: Added GetImportAddonInstance test

---------

Co-authored-by: Andreas Atteneder <andreas.atteneder@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants