-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
Docker publish does not write metadata to dist #19341
Comments
Is there a historical deliberate reason to not write BuiltPackages to a Workspace as part of the Publish goal? If there's no strong reason for it, I think I an open a PR for this one pretty easily, by including the BuiltPackage in the PublishProcesses as part of package_for_publish, then writing it out from the goal_rule.... right? |
Have you provided this option a value? |
I looked at that, but that's a different behaviour. I can use it, from scripts, but it's not as clean as writing a separate manifest for each published image to a directory in dist. My use case is that I'm deploying a bunch of serverless apps. If I have a well-known path for each image, it's easy to load the JSON manifest, extract the tagged image and use it in config. That solution still works if somebody runs If I use output and someone runs |
I see no reason right now not to write the manifest from the package step to dist also during publish.
I am curious though if this is not the behaviour you get with
This setting could go into |
Also, if you wish to (throwing around ideas to see what sticks) |
Yes! Which is a neater way to handle my immediate problem, I guess. I can stick a wrapper script around it and move on. The context here is that I'd like the set up to work robustly in the face of people doing things manually and not just relying on The Blessed Script.
The problem with setting a static location for the publish output is that
I could, but then I'm writing my own version of IF you're open to writing metadata from publish, I think that gives me the most developer friendly way to tackle this issue.
I'll try and put together a PR on that basis. This seems like it should be safe, and unsurprising, behaviour - if we package as part of publish, we'll write the same files to dist that we would have written for package alone. |
Fair enough. Given all the work-arounds and this is still the preferred solution I'm +1, as I don't have all the circumstantial details here ;) Thanks for tackling this. |
Describe the bug
pants package
causes a docker target to write a metadata json including the tags and registries for the new image.pants publish
reports that it has created the metadata file in the sandbox, but the file is never written back to dist. This means I can't use it for fetching the tag I've just published and, since my tags contain timestamps, I can't package then publish.Pants version
2.16.0rc5
The text was updated successfully, but these errors were encountered: