narrow-judge-15725
08/11/2022, 12:24 PMsource_root
.
my setup is something like:
pants.toml
...
[source]
root_patterns = [
"src/infrastructure/helm-charts/*"
]
...
src/infrastructure/helm-charts/base/Chart.yaml
apiVersion: v2
description: Common utilities for helm charts
name: base
version: 1.0.0
src/infrastructure/helm=charts/core/Chart.yaml
apiVersion: v2
description: Core dependencies for any kubernetes cluster
name: core
version: 1.0.0
dependencies:
- name: base
Each folder has the build file which tailor generated correctly.
As per the documentation this should be sufficient for the base dependency to be discovered from core. But:
./pants dependencies src/infrastructure/helm-charts/core
Returns nothinghappy-kitchen-89482
08/11/2022, 1:29 PMsrc/infrastructure/helm-charts
(without the *
)?src/infrastructure/helm-charts/*
means that every folder under helm-charts
is a separate root, which is probably not what you intended?narrow-judge-15725
08/11/2022, 3:30 PM[source]
root_patterns = [
"pants-plugins",
"src/infrastructure/helm-charts"
]
apiVersion: v2
name: service
description: Deploys a microservice application
version: 1.0.0
dependencies:
- name: base
happy-kitchen-89482
08/11/2022, 5:08 PMwitty-family-13337
08/11/2022, 5:10 PMsrc/infrastructure/helm-charts/*
hundreds-father-404
08/11/2022, 5:11 PMwitty-family-13337
08/11/2022, 5:13 PMmain
and could backport it into 2.13happy-kitchen-89482
08/11/2022, 5:19 PMsrc/infrastructure/helm-charts/
should be a root for them? That went against my intuition, so good thing I cc’d you… 🙂witty-family-13337
08/11/2022, 5:20 PMChart.yaml
is the roothundreds-father-404
08/11/2022, 5:20 PMit's fixed in main and could backport it into 2.13Yeah, I think that'd be helpful given that 2.14 is a few weeks out at lesat
witty-family-13337
08/11/2022, 5:21 PMnarrow-judge-15725
08/11/2022, 5:38 PMpants_version = "2.12.0"
witty-family-13337
08/11/2022, 5:39 PMnarrow-judge-15725
08/11/2022, 5:39 PM2.14.0.dev5
and /*
and it works./pants dependencies src/infrastructure/helm-charts/service
19:42:07.55 [INFO] Initializing scheduler...
19:42:07.86 [INFO] Scheduler initialized.
src/infrastructure/helm-charts/base:base
witty-family-13337
08/11/2022, 5:43 PMnarrow-judge-15725
08/11/2022, 5:43 PMsrc/infrastructure/helm-charts
as root through 🤔witty-family-13337
08/11/2022, 5:43 PMnarrow-judge-15725
08/11/2022, 5:43 PMwitty-family-13337
08/11/2022, 5:44 PMnarrow-judge-15725
08/11/2022, 5:44 PMwitty-family-13337
08/11/2022, 5:44 PMnarrow-judge-15725
08/11/2022, 5:46 PMwitty-family-13337
08/11/2022, 5:47 PMnarrow-judge-15725
08/11/2022, 5:47 PMwitty-family-13337
08/11/2022, 5:48 PMnarrow-judge-15725
08/11/2022, 5:48 PMhelm template
? i should write my own goal for this or there is already a way?witty-family-13337
08/11/2022, 5:49 PMnarrow-judge-15725
08/11/2022, 5:51 PMwitty-family-13337
08/11/2022, 5:51 PMexport-codegen
goalnarrow-judge-15725
08/11/2022, 5:52 PMwitty-family-13337
08/11/2022, 5:53 PMnarrow-judge-15725
08/11/2022, 5:54 PMdeployments
something with the helm implementation or something intended to become some kind of pants primitive? where can i read more about it?witty-family-13337
08/11/2022, 5:56 PMnarrow-judge-15725
08/11/2022, 5:57 PMdeploy
goal would be beneficial.witty-family-13337
08/11/2022, 5:58 PMnarrow-judge-15725
08/11/2022, 6:02 PMwitty-family-13337
08/11/2022, 6:07 PMnarrow-judge-15725
08/11/2022, 6:10 PMwitty-family-13337
08/12/2022, 7:49 AMnarrow-judge-15725
08/12/2022, 12:58 PMpants_version = "2.12.0"
or not yet?witty-family-13337
08/12/2022, 1:16 PMhappy-kitchen-89482
08/12/2022, 2:10 PM