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

Fix dependency load order when bundling #6

Open
dthigpen opened this issue Aug 19, 2023 · 0 comments
Open

Fix dependency load order when bundling #6

dthigpen opened this issue Aug 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@dthigpen
Copy link
Owner

For example:
Top level datapack's lantern load file:

// top_level
{
    "values": [
        "dt.inventory:load",
        "dt.array:load"
    ]
}
// dt.inventory
{
    "values": [
        "dt.array:load",
        "dep2:load"
    ]
}
// dt.array
{
    "values":[]
}

These dependencies should result in a final bundled load file of:

// top_level
{
    "values": [
        "dt.array:load",
        "dep2:load",
        "dt.inventory:load",
    ]
}

But instead we get a load file where dt.array:load comes after dt.inventory:load since it was specified after in the top level file

@dthigpen dthigpen added the bug Something isn't working label Aug 19, 2023
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

1 participant