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

ya package tries to do tar package with format: docker in package.json #18

Open
Krock21 opened this issue Sep 11, 2024 · 1 comment
Open

Comments

@Krock21
Copy link

Krock21 commented Sep 11, 2024

It happens only when include is used.

How to reproduce:

test.json:

{
    "include": [
      "FULL-PATH-HERE/empty.json",
    ],
    "meta": {
        "name": "docker-test",
        "maintainer": "docker-test",
        "description": "docker-test",
        "version": "{revision}",
    },
    "params": {
        "format": "docker",
    },
    "build": {},
    "data": [],
}

empty.json:

{
    "meta": {
        "name": "empty",
        "maintainer": "empty",
        "description": "empty",
        "version": "{revision}",
    },
    "build": {},
    "data": [],
}
$ ya package test.json
...
Creating tar package docker-test
...

Removing include section from test.json gives this:

$ ya package test.json
...
Creating docker package docker-test
...

I also notices that using include erases docker_target and docker_build_arg from params

@Krock21
Copy link
Author

Krock21 commented Sep 11, 2024

Seems like params from included file override params from test one

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

1 participant