ambitious-actor-36781
05/09/2021, 11:36 AMmyrepo
or mr
). under /libraries
, /services
etc.
But despite setting
[source]
root_patterns = [
"/scripts",
"/libraries",
"/services",
"/devops",
]
./pants count-loc '*'
doesn't find anything that isn't a file in the rootambitious-actor-36781
05/09/2021, 1:55 PM#pants.toml
[GLOBAL]
pants_version = "2.4.0"
backend_packages = [
"pants.backend.python"
]
[source]
root_patterns = [
"src/python",
"test/python",
]
$ git ls-files
.gitignore
pants
pants.toml
src/python/widget/foo.csv
src/python/widget/foo.py
I get the following:
$ ./pants count-loc '*'
───────────────────────────────────────────────────────────────────────────────
Language Files Lines Blanks Comments Code Complexity
───────────────────────────────────────────────────────────────────────────────
BASH 1 283 17 18 248 3
TOML 1 13 3 0 10 0
gitignore 1 5 0 1 4 0
───────────────────────────────────────────────────────────────────────────────
Total 3 301 20 19 262 3
───────────────────────────────────────────────────────────────────────────────
Estimated Cost to Develop $6,619
Estimated Schedule Effort 2.279288 months
Estimated People Required 0.344007
───────────────────────────────────────────────────────────────────────────────
ambitious-actor-36781
05/09/2021, 1:56 PMfoo.py
and foo.csv
in widget
happy-kitchen-89482
05/09/2021, 2:39 PM./pants count-loc '**'
happy-kitchen-89482
05/09/2021, 2:40 PM'*'
globs over the files in the cwd, '**'
globs over everything underneath it at any level.ambitious-actor-36781
05/09/2021, 2:45 PMhappy-kitchen-89482
05/09/2021, 2:46 PMambitious-actor-36781
05/09/2021, 3:02 PMhappy-kitchen-89482
05/09/2021, 4:21 PMhappy-kitchen-89482
05/09/2021, 4:21 PMbusy-vase-39202
05/09/2021, 10:29 PM*
, "*"
, and "**"
as a search wildcard rather than a literal. I'm adding mentions of the words "globbing" and "wildcard" there just to add a bit of SEO assist.busy-vase-39202
05/09/2021, 10:42 PMhappy-kitchen-89482
05/10/2021, 2:00 AMbusy-vase-39202
05/10/2021, 2:27 AMhundreds-father-404
05/10/2021, 5:06 AMambitious-actor-36781
05/10/2021, 8:17 AMambitious-actor-36781
05/10/2021, 8:17 AMambitious-actor-36781
05/10/2021, 8:21 AM./pants
executable, not the pants.toml
file
• ./pants test
doesn't do anything, and doesn't say why. you need to do ./pants test ::
or ./pants test '**'
to test everything.
• When you get an error on dependencies, it doesn't mention who's causing it to error ResolveError: The file or directory 'src/python/widget' does not exist on disk in the workspace, so the address 'src/python/widget' cannot be resolved.
busy-vase-39202
05/10/2021, 2:37 PM**
*or recursive globbing. It's not explicit either about what the role of the `*`* operator is. It's taken for granted that it's globbing. Also, that's a deep path to travel for a newcomer. I think it would make sense for them to encounter it in the Using Pants section or even possibly somewhere in the Introduction section.