I am doing some improvements on our pipelines in g...
# general
f
I am doing some improvements on our pipelines in gitlab and am using "package" goal for the first time. (I have a python library, a rust binary, and a few docker images to produce) When I ran this
Copy code
- 'pants package --changed-since=${CI_MERGE_REQUEST_TARGET_BRANCH_NAME} --changed-dependents=transitive ::'
It errors with
Copy code
Exception message: You used `--changed-since` at the same time as using glob arguments. You can only use `--changed-since` or use normal arguments.
NoneType: None
Context - I found this at the following reddit thread. https://www.reddit.com/r/Python/comments/153oomg/monorepo_microservices_dependency_managment_build/ The user
frisouille
does not state what Pants version they are using. (the version is 2.16.0rc3 - I will update to 2.17 tomorrow. Related Question(s) • what is the best command to run, to have pants tell me what packages are "package-able". ◦ Is there a smaller command than,
pants --filter-target-type=archive,docker_image,pex_binary,python_distribution list ::
g
I don't quite understand the question maybe.
package
only acts on things it can act on. E.g., if you do
pants package ::
it'll ignore everything that can't be packaged. When you using a filter such as
--changed-since
, you can simply drop the
::
since
--changed-since
will give you all targets in the provided time-range.
f
that's the answer 😄 The error was slightly misleading me
Copy code
Exception message: You used `--changed-since` at the same time as using glob arguments. You can only use `--changed-since` or use normal arguments.
what are "normal arguments" 😄
g
I'm going to guess it means "regular target selection syntax", but don't quote me on that.
b
Yeah that seems poorly worded. Feel free to grep the codebase for the message and submit a PR!
c
h
And yes, an update PR to clarify that would be great!