Trying to package my app using the ./repo.bat package command.
Kit Version is 109.0.1, fresh from the git repository.
Command:
./repo.bat package -n "my_app"
Output:
The redirected argument -n to --image-tag has new behavior. If a value of image_name:version_string is provided, that will be used to build your container. If no colon is detected, your container’s tag will be application_name:the_value_of_this_argument
error: unrecognized arguments: --image-tag my_app
Same also happens with the --name parameter. Documentation suggests that --image-tag is a parameter for the package_container command instead. Seems like some preprocessing is happening here that should only be applied for that command, not for the package command.
[[repo.deprecations]]
tool_name = "repo_package"
command = "package"
arg_name = "--name"
arg_redirect_name = "--image-tag"
log_message = "The redirected argument --name to --image-tag has new behavior. If a value of image_name:version_string is provided, that will be used to build your container. If no colon is detected, your container's tag will be application_name:the_value_of_this_argument"
As far as I can tell, tool_name really should be “repo_package_container” and command should be “package_container”.
Changing this makes the “package” command work with the --name parameter again.
I am not trying to direct it to a particular kit file, I am trying to give the package a name.
True, but I am running this in a CI/CD pipeline, building 3 separate apps from one repo. I’d either have to add an addititonal step for the renaming or get confused as to which artifact is what. Fixing this deprecation/redirection seems to be the least amount of pain.
I think the confusion stems from the fact that the package_container command apparently used to be just the package command with the --container argument. The intention seems to give developers who were using this a clear way forward to using the new command, but this just broke the regular package command. As of right now, this part of the companion tutorial fails.