renovate 40.0.0-next.40 → 40.0.0-next.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/options/index.js +13 -0
- package/dist/config/options/index.js.map +1 -1
- package/dist/config/presets/common.js +1 -0
- package/dist/config/presets/common.js.map +1 -1
- package/dist/config/presets/internal/custom-managers.js +15 -0
- package/dist/config/presets/internal/custom-managers.js.map +1 -1
- package/dist/constants/platforms.js +5 -1
- package/dist/constants/platforms.js.map +1 -1
- package/dist/data/monorepo.json +3 -1
- package/dist/data-files.generated.js +2 -2
- package/dist/data-files.generated.js.map +1 -1
- package/dist/instrumentation/index.js +28 -8
- package/dist/instrumentation/index.js.map +1 -1
- package/dist/modules/datasource/api.js +2 -0
- package/dist/modules/datasource/api.js.map +1 -1
- package/dist/modules/datasource/azure-pipelines-tasks/index.js +4 -0
- package/dist/modules/datasource/azure-pipelines-tasks/index.js.map +1 -1
- package/dist/modules/datasource/azure-pipelines-tasks/schema.d.ts +8 -0
- package/dist/modules/datasource/azure-pipelines-tasks/schema.js +1 -0
- package/dist/modules/datasource/azure-pipelines-tasks/schema.js.map +1 -1
- package/dist/modules/datasource/bazel/index.js +18 -1
- package/dist/modules/datasource/bazel/index.js.map +1 -1
- package/dist/modules/datasource/bazel/schema.d.ts +1 -0
- package/dist/modules/datasource/bazel/schema.js.map +1 -1
- package/dist/modules/datasource/bitbucket-server-tags/index.d.ts +19 -0
- package/dist/modules/datasource/bitbucket-server-tags/index.js +133 -0
- package/dist/modules/datasource/bitbucket-server-tags/index.js.map +1 -0
- package/dist/modules/datasource/bitbucket-server-tags/schema.d.ts +28 -0
- package/dist/modules/datasource/bitbucket-server-tags/schema.js +13 -0
- package/dist/modules/datasource/bitbucket-server-tags/schema.js.map +1 -0
- package/dist/modules/datasource/conda/prefix-dev.js +1 -3
- package/dist/modules/datasource/conda/prefix-dev.js.map +1 -1
- package/dist/modules/datasource/cpan/index.js +1 -3
- package/dist/modules/datasource/cpan/index.js.map +1 -1
- package/dist/modules/datasource/custom/schema.d.ts +3 -3
- package/dist/modules/datasource/deb/index.d.ts +4 -5
- package/dist/modules/datasource/deb/index.js +8 -9
- package/dist/modules/datasource/deb/index.js.map +1 -1
- package/dist/modules/datasource/deb/url.d.ts +3 -3
- package/dist/modules/datasource/deb/url.js +17 -13
- package/dist/modules/datasource/deb/url.js.map +1 -1
- package/dist/modules/datasource/docker/schema.d.ts +72 -96
- package/dist/modules/datasource/github-runners/index.js +2 -2
- package/dist/modules/datasource/github-runners/index.js.map +1 -1
- package/dist/modules/datasource/metadata.js +9 -1
- package/dist/modules/datasource/metadata.js.map +1 -1
- package/dist/modules/datasource/npm/get.d.ts +0 -1
- package/dist/modules/datasource/npm/get.js +14 -68
- package/dist/modules/datasource/npm/get.js.map +1 -1
- package/dist/modules/datasource/npm/types.d.ts +0 -8
- package/dist/modules/datasource/npm/types.js.map +1 -1
- package/dist/modules/datasource/packagist/schema.d.ts +7 -7
- package/dist/modules/datasource/types.d.ts +1 -0
- package/dist/modules/datasource/types.js.map +1 -1
- package/dist/modules/manager/argocd/schema.d.ts +12 -12
- package/dist/modules/manager/bazel-module/parser/maven.d.ts +6 -52
- package/dist/modules/manager/bazel-module/parser/oci.d.ts +3 -26
- package/dist/modules/manager/bazel-module/rules.d.ts +15 -125
- package/dist/modules/manager/bun/extract.d.ts +1 -0
- package/dist/modules/manager/bun/extract.js +53 -27
- package/dist/modules/manager/bun/extract.js.map +1 -1
- package/dist/modules/manager/bun/index.js +1 -1
- package/dist/modules/manager/bun/index.js.map +1 -1
- package/dist/modules/manager/bun/utils.d.ts +2 -0
- package/dist/modules/manager/bun/utils.js +22 -0
- package/dist/modules/manager/bun/utils.js.map +1 -0
- package/dist/modules/manager/cargo/schema.d.ts +3 -3
- package/dist/modules/manager/circleci/extract.js +21 -30
- package/dist/modules/manager/circleci/extract.js.map +1 -1
- package/dist/modules/manager/circleci/schema.d.ts +33 -144
- package/dist/modules/manager/circleci/schema.js +21 -17
- package/dist/modules/manager/circleci/schema.js.map +1 -1
- package/dist/modules/manager/composer/schema.d.ts +6 -8
- package/dist/modules/manager/conan/artifacts.d.ts +2 -0
- package/dist/modules/manager/conan/artifacts.js +76 -0
- package/dist/modules/manager/conan/artifacts.js.map +1 -0
- package/dist/modules/manager/conan/index.d.ts +2 -0
- package/dist/modules/manager/conan/index.js +4 -1
- package/dist/modules/manager/conan/index.js.map +1 -1
- package/dist/modules/manager/devbox/artifacts.js +7 -0
- package/dist/modules/manager/devbox/artifacts.js.map +1 -1
- package/dist/modules/manager/dockerfile/extract.js +2 -6
- package/dist/modules/manager/dockerfile/extract.js.map +1 -1
- package/dist/modules/manager/fingerprint.generated.js +10 -10
- package/dist/modules/manager/fingerprint.generated.js.map +1 -1
- package/dist/modules/manager/flux/schema.d.ts +36 -60
- package/dist/modules/manager/gomod/artifacts-extra.js +12 -4
- package/dist/modules/manager/gomod/artifacts-extra.js.map +1 -1
- package/dist/modules/manager/gomod/update.js +3 -1
- package/dist/modules/manager/gomod/update.js.map +1 -1
- package/dist/modules/manager/gradle/extract.js +8 -13
- package/dist/modules/manager/gradle/extract.js.map +1 -1
- package/dist/modules/manager/gradle/parser/handlers.js +8 -0
- package/dist/modules/manager/gradle/parser/handlers.js.map +1 -1
- package/dist/modules/manager/gradle/parser/registry-urls.js +36 -10
- package/dist/modules/manager/gradle/parser/registry-urls.js.map +1 -1
- package/dist/modules/manager/gradle/types.d.ts +1 -0
- package/dist/modules/manager/gradle/types.js.map +1 -1
- package/dist/modules/manager/maven/extract.js +1 -3
- package/dist/modules/manager/maven/extract.js.map +1 -1
- package/dist/modules/manager/nix/schema.d.ts +14 -14
- package/dist/modules/manager/nix/schema.js +1 -0
- package/dist/modules/manager/nix/schema.js.map +1 -1
- package/dist/modules/manager/npm/extract/common/package-file.js +1 -0
- package/dist/modules/manager/npm/extract/common/package-file.js.map +1 -1
- package/dist/modules/manager/nuget/extract.js +21 -18
- package/dist/modules/manager/nuget/extract.js.map +1 -1
- package/dist/modules/manager/pep621/schema.d.ts +292 -5
- package/dist/modules/manager/pip_requirements/common.js +2 -6
- package/dist/modules/manager/pip_requirements/common.js.map +1 -1
- package/dist/modules/manager/pixi/artifacts.js +4 -10
- package/dist/modules/manager/pixi/artifacts.js.map +1 -1
- package/dist/modules/manager/pixi/extract.d.ts +2 -0
- package/dist/modules/manager/pixi/extract.js +81 -3
- package/dist/modules/manager/pixi/extract.js.map +1 -1
- package/dist/modules/manager/pixi/index.d.ts +0 -1
- package/dist/modules/manager/pixi/index.js +1 -3
- package/dist/modules/manager/pixi/index.js.map +1 -1
- package/dist/modules/manager/pixi/schema.d.ts +394 -3
- package/dist/modules/manager/pixi/schema.js +135 -2
- package/dist/modules/manager/pixi/schema.js.map +1 -1
- package/dist/modules/manager/sveltos/schema.d.ts +18 -30
- package/dist/modules/manager/terraform/util.js +1 -3
- package/dist/modules/manager/terraform/util.js.map +1 -1
- package/dist/modules/manager/vendir/schema.d.ts +3 -3
- package/dist/modules/platform/bitbucket/schema.d.ts +3 -3
- package/dist/modules/platform/bitbucket-server/schema.d.ts +1 -0
- package/dist/modules/platform/bitbucket-server/schema.js +2 -1
- package/dist/modules/platform/bitbucket-server/schema.js.map +1 -1
- package/dist/modules/platform/gerrit/client.d.ts +0 -3
- package/dist/modules/platform/gerrit/client.js +8 -28
- package/dist/modules/platform/gerrit/client.js.map +1 -1
- package/dist/modules/platform/gerrit/index.js +0 -6
- package/dist/modules/platform/gerrit/index.js.map +1 -1
- package/dist/modules/platform/gerrit/scm.js +5 -6
- package/dist/modules/platform/gerrit/scm.js.map +1 -1
- package/dist/modules/platform/gerrit/types.d.ts +1 -4
- package/dist/modules/platform/gerrit/types.js.map +1 -1
- package/dist/modules/platform/gerrit/utils.d.ts +3 -2
- package/dist/modules/platform/gerrit/utils.js +3 -7
- package/dist/modules/platform/gerrit/utils.js.map +1 -1
- package/dist/modules/platform/gitea/index.js +7 -9
- package/dist/modules/platform/gitea/index.js.map +1 -1
- package/dist/modules/platform/github/issue.d.ts +6 -6
- package/dist/modules/platform/github/schema.d.ts +52 -52
- package/dist/modules/platform/gitlab/index.js +2 -6
- package/dist/modules/platform/gitlab/index.js.map +1 -1
- package/dist/modules/versioning/distro.js +1 -3
- package/dist/modules/versioning/distro.js.map +1 -1
- package/dist/util/cache/package/types.d.ts +1 -1
- package/dist/util/cache/package/types.js.map +1 -1
- package/dist/util/cache/repository/impl/base.js +4 -0
- package/dist/util/cache/repository/impl/base.js.map +1 -1
- package/dist/util/common.d.ts +4 -2
- package/dist/util/common.js +17 -3
- package/dist/util/common.js.map +1 -1
- package/dist/util/exec/containerbase.js +2 -3
- package/dist/util/exec/containerbase.js.map +1 -1
- package/dist/util/git/auth.js +8 -5
- package/dist/util/git/auth.js.map +1 -1
- package/dist/util/git/index.js +2 -6
- package/dist/util/git/index.js.map +1 -1
- package/dist/util/git/private-key.js +1 -3
- package/dist/util/git/private-key.js.map +1 -1
- package/dist/util/git/types.d.ts +2 -0
- package/dist/util/git/types.js.map +1 -1
- package/dist/util/git/url.js +1 -1
- package/dist/util/git/url.js.map +1 -1
- package/dist/util/github/graphql/datasource-fetcher.js +3 -5
- package/dist/util/github/graphql/datasource-fetcher.js.map +1 -1
- package/dist/util/http/bitbucket-server.d.ts +2 -1
- package/dist/util/http/bitbucket-server.js +5 -3
- package/dist/util/http/bitbucket-server.js.map +1 -1
- package/dist/util/http/cache/package-http-cache-provider.d.ts +23 -0
- package/dist/util/http/cache/package-http-cache-provider.js +80 -0
- package/dist/util/http/cache/package-http-cache-provider.js.map +1 -0
- package/dist/util/http/host-rules.js +12 -0
- package/dist/util/http/host-rules.js.map +1 -1
- package/dist/util/schema-utils.d.ts +1 -0
- package/dist/util/schema-utils.js +43 -8
- package/dist/util/schema-utils.js.map +1 -1
- package/dist/util/string.d.ts +1 -0
- package/dist/util/string.js +4 -0
- package/dist/util/string.js.map +1 -1
- package/dist/util/yaml.js +2 -3
- package/dist/util/yaml.js.map +1 -1
- package/dist/workers/global/config/parse/index.js +10 -0
- package/dist/workers/global/config/parse/index.js.map +1 -1
- package/dist/workers/global/index.js +4 -2
- package/dist/workers/global/index.js.map +1 -1
- package/dist/workers/repository/process/lookup/index.js +2 -0
- package/dist/workers/repository/process/lookup/index.js.map +1 -1
- package/dist/workers/repository/process/lookup/timestamps.d.ts +18 -0
- package/dist/workers/repository/process/lookup/timestamps.js +69 -0
- package/dist/workers/repository/process/lookup/timestamps.js.map +1 -0
- package/dist/workers/repository/process/lookup/types.d.ts +1 -0
- package/dist/workers/repository/process/lookup/types.js.map +1 -1
- package/dist/workers/repository/process/lookup/utils.js +20 -9
- package/dist/workers/repository/process/lookup/utils.js.map +1 -1
- package/dist/workers/repository/process/sort.js +1 -1
- package/dist/workers/repository/process/sort.js.map +1 -1
- package/dist/workers/repository/reconfigure/utils.d.ts +2 -0
- package/dist/workers/repository/reconfigure/utils.js +16 -0
- package/dist/workers/repository/reconfigure/utils.js.map +1 -1
- package/dist/workers/repository/reconfigure/validate.js +5 -17
- package/dist/workers/repository/reconfigure/validate.js.map +1 -1
- package/dist/workers/repository/update/branch/auto-replace.js +25 -5
- package/dist/workers/repository/update/branch/auto-replace.js.map +1 -1
- package/dist/workers/repository/update/branch/commit.js +2 -0
- package/dist/workers/repository/update/branch/commit.js.map +1 -1
- package/dist/workers/repository/update/pr/body/config-description.js +26 -1
- package/dist/workers/repository/update/pr/body/config-description.js.map +1 -1
- package/dist/workers/repository/update/pr/body/index.js +21 -14
- package/dist/workers/repository/update/pr/body/index.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/api.js +8 -6
- package/dist/workers/repository/update/pr/changelog/api.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/bitbucket-server/index.d.ts +3 -0
- package/dist/workers/repository/update/pr/changelog/bitbucket-server/index.js +39 -0
- package/dist/workers/repository/update/pr/changelog/bitbucket-server/index.js.map +1 -0
- package/dist/workers/repository/update/pr/changelog/bitbucket-server/source.d.ts +8 -0
- package/dist/workers/repository/update/pr/changelog/bitbucket-server/source.js +31 -0
- package/dist/workers/repository/update/pr/changelog/bitbucket-server/source.js.map +1 -0
- package/dist/workers/repository/update/pr/changelog/release-notes.js +12 -8
- package/dist/workers/repository/update/pr/changelog/release-notes.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/source.d.ts +1 -1
- package/dist/workers/repository/update/pr/changelog/source.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/types.d.ts +1 -1
- package/dist/workers/repository/update/pr/changelog/types.js.map +1 -1
- package/dist/workers/repository/update/pr/index.js +2 -4
- package/dist/workers/repository/update/pr/index.js.map +1 -1
- package/dist/workers/repository/updates/generate.js +2 -0
- package/dist/workers/repository/updates/generate.js.map +1 -1
- package/package.json +40 -37
- package/renovate-schema.json +9 -2
- package/dist/modules/manager/pixi/lockfile.d.ts +0 -6
- package/dist/modules/manager/pixi/lockfile.js +0 -25
- package/dist/modules/manager/pixi/lockfile.js.map +0 -1
@@ -46,7 +46,194 @@ export declare const PyProjectSchema: z.ZodObject<{
|
|
46
46
|
}>>;
|
47
47
|
'dependency-groups': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodArray<z.ZodAny, "many">, string[], any[]>>>;
|
48
48
|
tool: z.ZodOptional<z.ZodObject<{
|
49
|
-
pixi: z.ZodOptional<z.
|
49
|
+
pixi: z.ZodOptional<z.ZodIntersection<z.ZodIntersection<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
50
|
+
workspace: z.ZodObject<{
|
51
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
52
|
+
channel: z.ZodString;
|
53
|
+
priority: z.ZodNumber;
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
55
|
+
priority: number;
|
56
|
+
channel: string;
|
57
|
+
}, {
|
58
|
+
priority: number;
|
59
|
+
channel: string;
|
60
|
+
}>]>, "many">>;
|
61
|
+
'requires-pixi': z.ZodOptional<z.ZodString>;
|
62
|
+
'channel-priority': z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"strict">, z.ZodLiteral<"disabled">]>>;
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
64
|
+
channels: (string | {
|
65
|
+
priority: number;
|
66
|
+
channel: string;
|
67
|
+
})[];
|
68
|
+
'channel-priority': "disabled" | "strict";
|
69
|
+
'requires-pixi'?: string | undefined;
|
70
|
+
}, {
|
71
|
+
channels?: (string | {
|
72
|
+
priority: number;
|
73
|
+
channel: string;
|
74
|
+
})[] | undefined;
|
75
|
+
'requires-pixi'?: string | undefined;
|
76
|
+
'channel-priority'?: "disabled" | "strict" | undefined;
|
77
|
+
}>;
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
79
|
+
workspace: {
|
80
|
+
channels: (string | {
|
81
|
+
priority: number;
|
82
|
+
channel: string;
|
83
|
+
})[];
|
84
|
+
'channel-priority': "disabled" | "strict";
|
85
|
+
'requires-pixi'?: string | undefined;
|
86
|
+
};
|
87
|
+
}, {
|
88
|
+
workspace: {
|
89
|
+
channels?: (string | {
|
90
|
+
priority: number;
|
91
|
+
channel: string;
|
92
|
+
})[] | undefined;
|
93
|
+
'requires-pixi'?: string | undefined;
|
94
|
+
'channel-priority'?: "disabled" | "strict" | undefined;
|
95
|
+
};
|
96
|
+
}>, {
|
97
|
+
project: {
|
98
|
+
channels: (string | {
|
99
|
+
priority: number;
|
100
|
+
channel: string;
|
101
|
+
})[];
|
102
|
+
'channel-priority': "disabled" | "strict";
|
103
|
+
'requires-pixi'?: string | undefined;
|
104
|
+
};
|
105
|
+
}, {
|
106
|
+
workspace: {
|
107
|
+
channels?: (string | {
|
108
|
+
priority: number;
|
109
|
+
channel: string;
|
110
|
+
})[] | undefined;
|
111
|
+
'requires-pixi'?: string | undefined;
|
112
|
+
'channel-priority'?: "disabled" | "strict" | undefined;
|
113
|
+
};
|
114
|
+
}>, z.ZodObject<{
|
115
|
+
project: z.ZodObject<{
|
116
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
117
|
+
channel: z.ZodString;
|
118
|
+
priority: z.ZodNumber;
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
120
|
+
priority: number;
|
121
|
+
channel: string;
|
122
|
+
}, {
|
123
|
+
priority: number;
|
124
|
+
channel: string;
|
125
|
+
}>]>, "many">>;
|
126
|
+
'requires-pixi': z.ZodOptional<z.ZodString>;
|
127
|
+
'channel-priority': z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"strict">, z.ZodLiteral<"disabled">]>>;
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
129
|
+
channels: (string | {
|
130
|
+
priority: number;
|
131
|
+
channel: string;
|
132
|
+
})[];
|
133
|
+
'channel-priority': "disabled" | "strict";
|
134
|
+
'requires-pixi'?: string | undefined;
|
135
|
+
}, {
|
136
|
+
channels?: (string | {
|
137
|
+
priority: number;
|
138
|
+
channel: string;
|
139
|
+
})[] | undefined;
|
140
|
+
'requires-pixi'?: string | undefined;
|
141
|
+
'channel-priority'?: "disabled" | "strict" | undefined;
|
142
|
+
}>;
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
144
|
+
project: {
|
145
|
+
channels: (string | {
|
146
|
+
priority: number;
|
147
|
+
channel: string;
|
148
|
+
})[];
|
149
|
+
'channel-priority': "disabled" | "strict";
|
150
|
+
'requires-pixi'?: string | undefined;
|
151
|
+
};
|
152
|
+
}, {
|
153
|
+
project: {
|
154
|
+
channels?: (string | {
|
155
|
+
priority: number;
|
156
|
+
channel: string;
|
157
|
+
})[] | undefined;
|
158
|
+
'requires-pixi'?: string | undefined;
|
159
|
+
'channel-priority'?: "disabled" | "strict" | undefined;
|
160
|
+
};
|
161
|
+
}>]>, z.ZodObject<{
|
162
|
+
feature: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodAny>, Record<string, {
|
163
|
+
channels?: (string | {
|
164
|
+
priority: number;
|
165
|
+
channel: string;
|
166
|
+
})[] | undefined;
|
167
|
+
} & {
|
168
|
+
pypi: import("../pixi/schema").PixiPackageDependency[];
|
169
|
+
conda: import("../pixi/schema").PixiPackageDependency[];
|
170
|
+
}>, Record<string, any>>, {
|
171
|
+
conda: import("../pixi/schema").PixiPackageDependency[];
|
172
|
+
pypi: import("../pixi/schema").PixiPackageDependency[];
|
173
|
+
}, Record<string, any>>>;
|
174
|
+
}, "strip", z.ZodTypeAny, {
|
175
|
+
feature: {
|
176
|
+
conda: import("../pixi/schema").PixiPackageDependency[];
|
177
|
+
pypi: import("../pixi/schema").PixiPackageDependency[];
|
178
|
+
};
|
179
|
+
}, {
|
180
|
+
feature?: Record<string, any> | undefined;
|
181
|
+
}>>, z.ZodEffects<z.ZodObject<{
|
182
|
+
dependencies: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodAny>, Record<string, {
|
183
|
+
currentValue: string;
|
184
|
+
versioning: string;
|
185
|
+
datasource: string;
|
186
|
+
depType: string;
|
187
|
+
channel: string | undefined;
|
188
|
+
}>, Record<string, any>>, import("../types").PackageDependency<Record<string, any>>[], Record<string, any>>>>;
|
189
|
+
'pypi-dependencies': z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodAny>, Record<string, {
|
190
|
+
currentValue: string;
|
191
|
+
versioning: string;
|
192
|
+
datasource: string;
|
193
|
+
depType: string;
|
194
|
+
} | {
|
195
|
+
currentValue: string | undefined;
|
196
|
+
packageName: string;
|
197
|
+
datasource: string;
|
198
|
+
depType: string;
|
199
|
+
versioning: string;
|
200
|
+
skipStage: "extract";
|
201
|
+
skipReason: "unspecified-version";
|
202
|
+
} | {
|
203
|
+
currentValue: string;
|
204
|
+
packageName: string;
|
205
|
+
datasource: string;
|
206
|
+
depType: string;
|
207
|
+
versioning: string;
|
208
|
+
skipStage?: undefined;
|
209
|
+
skipReason?: undefined;
|
210
|
+
}>, Record<string, any>>, import("../types").PackageDependency<Record<string, any>>[], Record<string, any>>>>;
|
211
|
+
target: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodAny>, Record<string, {
|
212
|
+
dependencies: import("../types").PackageDependency<Record<string, any>>[];
|
213
|
+
'pypi-dependencies': import("../types").PackageDependency<Record<string, any>>[];
|
214
|
+
}>, Record<string, any>>, {
|
215
|
+
pypi: import("../pixi/schema").PixiPackageDependency[];
|
216
|
+
conda: import("../pixi/schema").PixiPackageDependency[];
|
217
|
+
}, Record<string, any>>>>;
|
218
|
+
}, "strip", z.ZodTypeAny, {
|
219
|
+
target: {
|
220
|
+
pypi: import("../pixi/schema").PixiPackageDependency[];
|
221
|
+
conda: import("../pixi/schema").PixiPackageDependency[];
|
222
|
+
};
|
223
|
+
dependencies: import("../types").PackageDependency<Record<string, any>>[];
|
224
|
+
'pypi-dependencies': import("../types").PackageDependency<Record<string, any>>[];
|
225
|
+
}, {
|
226
|
+
target?: Record<string, any> | undefined;
|
227
|
+
dependencies?: Record<string, any> | undefined;
|
228
|
+
'pypi-dependencies'?: Record<string, any> | undefined;
|
229
|
+
}>, {
|
230
|
+
pypi: import("../pixi/schema").PixiPackageDependency[];
|
231
|
+
conda: import("../pixi/schema").PixiPackageDependency[];
|
232
|
+
}, {
|
233
|
+
target?: Record<string, any> | undefined;
|
234
|
+
dependencies?: Record<string, any> | undefined;
|
235
|
+
'pypi-dependencies'?: Record<string, any> | undefined;
|
236
|
+
}>>>;
|
50
237
|
pdm: z.ZodOptional<z.ZodObject<{
|
51
238
|
'dev-dependencies': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
52
239
|
source: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
@@ -195,7 +382,33 @@ export declare const PyProjectSchema: z.ZodObject<{
|
|
195
382
|
}[] | undefined;
|
196
383
|
'dev-dependencies'?: Record<string, string[]> | undefined;
|
197
384
|
} | undefined;
|
198
|
-
pixi?: {
|
385
|
+
pixi?: ((({
|
386
|
+
project: {
|
387
|
+
channels: (string | {
|
388
|
+
priority: number;
|
389
|
+
channel: string;
|
390
|
+
})[];
|
391
|
+
'channel-priority': "disabled" | "strict";
|
392
|
+
'requires-pixi'?: string | undefined;
|
393
|
+
};
|
394
|
+
} | {
|
395
|
+
project: {
|
396
|
+
channels: (string | {
|
397
|
+
priority: number;
|
398
|
+
channel: string;
|
399
|
+
})[];
|
400
|
+
'channel-priority': "disabled" | "strict";
|
401
|
+
'requires-pixi'?: string | undefined;
|
402
|
+
};
|
403
|
+
}) & {
|
404
|
+
feature: {
|
405
|
+
conda: import("../pixi/schema").PixiPackageDependency[];
|
406
|
+
pypi: import("../pixi/schema").PixiPackageDependency[];
|
407
|
+
};
|
408
|
+
}) & {
|
409
|
+
pypi: import("../pixi/schema").PixiPackageDependency[];
|
410
|
+
conda: import("../pixi/schema").PixiPackageDependency[];
|
411
|
+
}) | undefined;
|
199
412
|
hatch?: {
|
200
413
|
envs?: Record<string, {
|
201
414
|
dependencies?: string[] | undefined;
|
@@ -221,7 +434,31 @@ export declare const PyProjectSchema: z.ZodObject<{
|
|
221
434
|
}[] | undefined;
|
222
435
|
'dev-dependencies'?: Record<string, string[]> | undefined;
|
223
436
|
} | undefined;
|
224
|
-
pixi?: {
|
437
|
+
pixi?: ((({
|
438
|
+
workspace: {
|
439
|
+
channels?: (string | {
|
440
|
+
priority: number;
|
441
|
+
channel: string;
|
442
|
+
})[] | undefined;
|
443
|
+
'requires-pixi'?: string | undefined;
|
444
|
+
'channel-priority'?: "disabled" | "strict" | undefined;
|
445
|
+
};
|
446
|
+
} | {
|
447
|
+
project: {
|
448
|
+
channels?: (string | {
|
449
|
+
priority: number;
|
450
|
+
channel: string;
|
451
|
+
})[] | undefined;
|
452
|
+
'requires-pixi'?: string | undefined;
|
453
|
+
'channel-priority'?: "disabled" | "strict" | undefined;
|
454
|
+
};
|
455
|
+
}) & {
|
456
|
+
feature?: Record<string, any> | undefined;
|
457
|
+
}) & {
|
458
|
+
target?: Record<string, any> | undefined;
|
459
|
+
dependencies?: Record<string, any> | undefined;
|
460
|
+
'pypi-dependencies'?: Record<string, any> | undefined;
|
461
|
+
}) | undefined;
|
225
462
|
hatch?: {
|
226
463
|
envs?: Record<string, {
|
227
464
|
dependencies?: string[] | undefined;
|
@@ -268,7 +505,33 @@ export declare const PyProjectSchema: z.ZodObject<{
|
|
268
505
|
}[] | undefined;
|
269
506
|
'dev-dependencies'?: Record<string, string[]> | undefined;
|
270
507
|
} | undefined;
|
271
|
-
pixi?: {
|
508
|
+
pixi?: ((({
|
509
|
+
project: {
|
510
|
+
channels: (string | {
|
511
|
+
priority: number;
|
512
|
+
channel: string;
|
513
|
+
})[];
|
514
|
+
'channel-priority': "disabled" | "strict";
|
515
|
+
'requires-pixi'?: string | undefined;
|
516
|
+
};
|
517
|
+
} | {
|
518
|
+
project: {
|
519
|
+
channels: (string | {
|
520
|
+
priority: number;
|
521
|
+
channel: string;
|
522
|
+
})[];
|
523
|
+
'channel-priority': "disabled" | "strict";
|
524
|
+
'requires-pixi'?: string | undefined;
|
525
|
+
};
|
526
|
+
}) & {
|
527
|
+
feature: {
|
528
|
+
conda: import("../pixi/schema").PixiPackageDependency[];
|
529
|
+
pypi: import("../pixi/schema").PixiPackageDependency[];
|
530
|
+
};
|
531
|
+
}) & {
|
532
|
+
pypi: import("../pixi/schema").PixiPackageDependency[];
|
533
|
+
conda: import("../pixi/schema").PixiPackageDependency[];
|
534
|
+
}) | undefined;
|
272
535
|
hatch?: {
|
273
536
|
envs?: Record<string, {
|
274
537
|
dependencies?: string[] | undefined;
|
@@ -307,7 +570,31 @@ export declare const PyProjectSchema: z.ZodObject<{
|
|
307
570
|
}[] | undefined;
|
308
571
|
'dev-dependencies'?: Record<string, string[]> | undefined;
|
309
572
|
} | undefined;
|
310
|
-
pixi?: {
|
573
|
+
pixi?: ((({
|
574
|
+
workspace: {
|
575
|
+
channels?: (string | {
|
576
|
+
priority: number;
|
577
|
+
channel: string;
|
578
|
+
})[] | undefined;
|
579
|
+
'requires-pixi'?: string | undefined;
|
580
|
+
'channel-priority'?: "disabled" | "strict" | undefined;
|
581
|
+
};
|
582
|
+
} | {
|
583
|
+
project: {
|
584
|
+
channels?: (string | {
|
585
|
+
priority: number;
|
586
|
+
channel: string;
|
587
|
+
})[] | undefined;
|
588
|
+
'requires-pixi'?: string | undefined;
|
589
|
+
'channel-priority'?: "disabled" | "strict" | undefined;
|
590
|
+
};
|
591
|
+
}) & {
|
592
|
+
feature?: Record<string, any> | undefined;
|
593
|
+
}) & {
|
594
|
+
target?: Record<string, any> | undefined;
|
595
|
+
dependencies?: Record<string, any> | undefined;
|
596
|
+
'pypi-dependencies'?: Record<string, any> | undefined;
|
597
|
+
}) | undefined;
|
311
598
|
hatch?: {
|
312
599
|
envs?: Record<string, {
|
313
600
|
dependencies?: string[] | undefined;
|
@@ -51,15 +51,11 @@ function extractPackageFileFlags(content) {
|
|
51
51
|
res.additionalRegistryUrls = cleanRegistryUrls(additionalRegistryUrls);
|
52
52
|
}
|
53
53
|
if (additionalRequirementsFiles.length) {
|
54
|
-
|
55
|
-
res.managerData = {};
|
56
|
-
}
|
54
|
+
res.managerData ??= {};
|
57
55
|
res.managerData.requirementsFiles = additionalRequirementsFiles;
|
58
56
|
}
|
59
57
|
if (additionalConstraintsFiles.length) {
|
60
|
-
|
61
|
-
res.managerData = {};
|
62
|
-
}
|
58
|
+
res.managerData ??= {};
|
63
59
|
res.managerData.constraintsFiles = additionalConstraintsFiles;
|
64
60
|
}
|
65
61
|
return res;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../lib/modules/manager/pip_requirements/common.ts"],"names":[],"mappings":";;AA2BA,
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../lib/modules/manager/pip_requirements/common.ts"],"names":[],"mappings":";;AA2BA,0DAsCC;AAjED,mDAAsD;AACtD,+CAA0D;AAI1D,SAAS,i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C,GAAG,CAAC,WAAW,KAAK,EAAE,CAAC;QACvB,GAAG,CAAC,WAAW,CAAC,gBAAgB,GAAG,0BAA0B,CAAC;IAChE,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC","sourcesContent":["import { GlobalConfig } from '../../../config/global';\nimport { newlineRegex, regEx } from '../../../util/regex';\nimport type { PackageFileContent } from '../types';\nimport type { PipRequirementsManagerData } from './types';\n\nfunction cleanRegistryUrls(registryUrls: string[]): string[] {\n return registryUrls.map((url) => {\n // handle the optional quotes in eg. `--extra-index-url \"https://foo.bar\"`\n const cleaned = url.replace(regEx(/^\"/), '').replace(regEx(/\"$/), '');\n if (!GlobalConfig.get('exposeAllEnv')) {\n return cleaned;\n }\n // interpolate any environment variables\n return cleaned.replace(\n regEx(/(\\$[A-Za-z\\d_]+)|(\\${[A-Za-z\\d_]+})/g),\n (match) => {\n const envvar = match\n .substring(1)\n .replace(regEx(/^{/), '')\n .replace(regEx(/}$/), '');\n const sub = process.env[envvar];\n return sub ?? match;\n },\n );\n });\n}\n\nexport function extractPackageFileFlags(\n content: string,\n): PackageFileContent<PipRequirementsManagerData> {\n let registryUrls: string[] = [];\n const additionalRegistryUrls: string[] = [];\n const additionalRequirementsFiles: string[] = [];\n const additionalConstraintsFiles: string[] = [];\n content.split(newlineRegex).forEach((line) => {\n if (line.startsWith('-i ') || line.startsWith('--index-url ')) {\n registryUrls = [line.split(' ')[1]];\n } else if (line.startsWith('--extra-index-url ')) {\n const extraUrl = line\n .substring('--extra-index-url '.length)\n .split(' ')[0];\n additionalRegistryUrls.push(extraUrl);\n } else if (line.startsWith('-r ')) {\n additionalRequirementsFiles.push(line.split(' ')[1]);\n } else if (line.startsWith('-c ')) {\n additionalConstraintsFiles.push(line.split(' ')[1]);\n }\n });\n\n const res: PackageFileContent<PipRequirementsManagerData> = { deps: [] };\n if (registryUrls.length > 0) {\n res.registryUrls = cleanRegistryUrls(registryUrls);\n }\n if (additionalRegistryUrls.length) {\n res.additionalRegistryUrls = cleanRegistryUrls(additionalRegistryUrls);\n }\n if (additionalRequirementsFiles.length) {\n res.managerData ??= {};\n res.managerData.requirementsFiles = additionalRequirementsFiles;\n }\n if (additionalConstraintsFiles.length) {\n res.managerData ??= {};\n res.managerData.constraintsFiles = additionalConstraintsFiles;\n }\n return res;\n}\n"]}
|
@@ -8,9 +8,7 @@ const error_messages_1 = require("../../../constants/error-messages");
|
|
8
8
|
const logger_1 = require("../../../logger");
|
9
9
|
const exec_1 = require("../../../util/exec");
|
10
10
|
const fs_1 = require("../../../util/fs");
|
11
|
-
const
|
12
|
-
const lockfile_1 = require("./lockfile");
|
13
|
-
const schema_1 = require("./schema");
|
11
|
+
const extract_1 = require("./extract");
|
14
12
|
exports.commandLock = 'pixi lock --no-progress --color=never --quiet';
|
15
13
|
async function updateArtifacts({ packageFileName, updatedDeps, newPackageFileContent, config, }) {
|
16
14
|
logger_1.logger.debug(`pixi.updateArtifacts(${packageFileName})`);
|
@@ -27,7 +25,8 @@ async function updateArtifacts({ packageFileName, updatedDeps, newPackageFileCon
|
|
27
25
|
}
|
28
26
|
logger_1.logger.trace(`Updating ${lockFileName}`);
|
29
27
|
const cmd = [exports.commandLock];
|
30
|
-
const
|
28
|
+
const pixiConfig = (0, extract_1.getUserPixiConfig)(newPackageFileContent, packageFileName);
|
29
|
+
const constraint = config.constraints?.pixi ?? pixiConfig?.project['requires-pixi'];
|
31
30
|
try {
|
32
31
|
await (0, fs_1.writeLocalFile)(packageFileName, newPackageFileContent);
|
33
32
|
if (isLockFileMaintenance) {
|
@@ -70,15 +69,10 @@ async function updateArtifacts({ packageFileName, updatedDeps, newPackageFileCon
|
|
70
69
|
{
|
71
70
|
artifactError: {
|
72
71
|
lockFile: lockFileName,
|
73
|
-
stderr: `${err}
|
72
|
+
stderr: `${err}`,
|
74
73
|
},
|
75
74
|
},
|
76
75
|
];
|
77
76
|
}
|
78
77
|
}
|
79
|
-
function getPixiConstraint(existingLockFileContent) {
|
80
|
-
const { val } = result_1.Result.parse(existingLockFileContent, schema_1.LockfileYaml).unwrap();
|
81
|
-
const cfg = (0, lockfile_1.pickConfig)(val?.version);
|
82
|
-
return cfg?.range ?? undefined;
|
83
|
-
}
|
84
78
|
//# sourceMappingURL=artifacts.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../../../lib/modules/manager/pixi/artifacts.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../../../lib/modules/manager/pixi/artifacts.ts"],"names":[],"mappings":";;;AAiBA,0CA8EC;;AA/FD,kEAAkC;AAClC,sEAAoE;AACpE,4CAAyC;AACzC,6CAA0C;AAE1C,yCAM0B;AAE1B,uCAA8C;AAEjC,QAAA,WAAW,GAAG,+CAA+C,CAAC;AAEpE,KAAK,UAAU,eAAe,CAAC,EACpC,eAAe,EACf,WAAW,EACX,qBAAqB,EACrB,MAAM,GACS;IACf,eAAM,CAAC,KAAK,CAAC,wBAAwB,eAAe,GAAG,CAAC,CAAC;IACzD,MAAM,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAAC;IAEzC,IAAI,CAAC,YAAE,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC7D,eAAM,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAC;QACtD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,YAAY,GAAG,IAAA,uBAAkB,EAAC,eAAe,EAAE,WAAW,CAAC,CAAC;IACtE,MAAM,uBAAuB,GAAG,MAAM,IAAA,kBAAa,EAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAC1E,IAAI,CAAC,uBAAuB,EAAE,CAAC;QAC7B,eAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACnC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,eAAM,CAAC,KAAK,CAAC,YAAY,YAAY,EAAE,CAAC,CAAC;IAEzC,MAA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AE,CAAC;YACpC,MAAM,GAAG,CAAC;QACZ,CAAC;QAED,eAAM,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,EAAE,oBAAoB,YAAY,OAAO,CAAC,CAAC;QAC/D,OAAO;YACL;gBACE,aAAa,EAAE;oBACb,QAAQ,EAAE,YAAY;oBACtB,MAAM,EAAE,GAAG,GAAG,EAAE;iBACjB;aACF;SACF,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["import is from '@sindresorhus/is';\nimport { TEMPORARY_ERROR } from '../../../constants/error-messages';\nimport { logger } from '../../../logger';\nimport { exec } from '../../../util/exec';\nimport type { ExecOptions } from '../../../util/exec/types';\nimport {\n deleteLocalFile,\n ensureCacheDir,\n getSiblingFileName,\n readLocalFile,\n writeLocalFile,\n} from '../../../util/fs';\nimport type { UpdateArtifact, UpdateArtifactsResult } from '../types';\nimport { getUserPixiConfig } from './extract';\n\nexport const commandLock = 'pixi lock --no-progress --color=never --quiet';\n\nexport async function updateArtifacts({\n packageFileName,\n updatedDeps,\n newPackageFileContent,\n config,\n}: UpdateArtifact): Promise<UpdateArtifactsResult[] | null> {\n logger.debug(`pixi.updateArtifacts(${packageFileName})`);\n const { isLockFileMaintenance } = config;\n\n if (!is.nonEmptyArray(updatedDeps) && !isLockFileMaintenance) {\n logger.debug('No updated pixi deps - returning null');\n return null;\n }\n\n const lockFileName = getSiblingFileName(packageFileName, 'pixi.lock');\n const existingLockFileContent = await readLocalFile(lockFileName, 'utf8');\n if (!existingLockFileContent) {\n logger.debug(`No lock file found`);\n return null;\n }\n logger.trace(`Updating ${lockFileName}`);\n\n const cmd = [commandLock];\n\n const pixiConfig = getUserPixiConfig(newPackageFileContent, packageFileName);\n\n const constraint =\n config.constraints?.pixi ?? pixiConfig?.project['requires-pixi'];\n\n try {\n await writeLocalFile(packageFileName, newPackageFileContent);\n if (isLockFileMaintenance) {\n await deleteLocalFile(lockFileName);\n }\n\n // https://pixi.sh/latest/features/environment/#caching-packages\n const PIXI_CACHE_DIR = await ensureCacheDir('pixi');\n const extraEnv = {\n PIXI_CACHE_DIR,\n RATTLER_CACHE_DIR: PIXI_CACHE_DIR,\n };\n\n const execOptions: ExecOptions = {\n cwdFile: packageFileName,\n extraEnv,\n docker: {},\n toolConstraints: [{ toolName: 'pixi', constraint }],\n };\n await exec(cmd, execOptions);\n const newPixiLockContent = await readLocalFile(lockFileName, 'utf8');\n if (existingLockFileContent === newPixiLockContent) {\n logger.debug(`${lockFileName} is unchanged`);\n return null;\n }\n return [\n {\n file: {\n type: 'addition',\n path: lockFileName,\n contents: newPixiLockContent,\n },\n },\n ];\n } catch (err) {\n if (err.message === TEMPORARY_ERROR) {\n throw err;\n }\n\n logger.debug({ err }, `Failed to update ${lockFileName} file`);\n return [\n {\n artifactError: {\n lockFile: lockFileName,\n stderr: `${err}`,\n },\n },\n ];\n }\n}\n"]}
|
@@ -1,2 +1,4 @@
|
|
1
1
|
import type { PackageFileContent } from '../types';
|
2
|
+
import { type PixiConfig } from './schema';
|
3
|
+
export declare function getUserPixiConfig(content: string, packageFile: string): null | PixiConfig;
|
2
4
|
export declare function extractPackageFile(content: string, packageFile: string): Promise<PackageFileContent | null>;
|
@@ -1,11 +1,17 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getUserPixiConfig = getUserPixiConfig;
|
3
4
|
exports.extractPackageFile = extractPackageFile;
|
5
|
+
const tslib_1 = require("tslib");
|
6
|
+
const is_1 = tslib_1.__importDefault(require("@sindresorhus/is"));
|
4
7
|
const zod_1 = require("zod");
|
5
8
|
const logger_1 = require("../../../logger");
|
9
|
+
const array_1 = require("../../../util/array");
|
6
10
|
const fs_1 = require("../../../util/fs");
|
7
11
|
const result_1 = require("../../../util/result");
|
8
12
|
const schema_utils_1 = require("../../../util/schema-utils");
|
13
|
+
const url_1 = require("../../../util/url");
|
14
|
+
const common_1 = require("../../datasource/conda/common");
|
9
15
|
const schema_1 = require("../pep621/schema");
|
10
16
|
const schema_2 = require("./schema");
|
11
17
|
const PyProjectToml = schema_utils_1.Toml.pipe(schema_1.PyProjectSchema);
|
@@ -36,8 +42,8 @@ function getUserPixiConfig(content, packageFile) {
|
|
36
42
|
}
|
37
43
|
async function extractPackageFile(content, packageFile) {
|
38
44
|
logger_1.logger.trace(`pixi.extractPackageFile(${packageFile})`);
|
39
|
-
const
|
40
|
-
if (!
|
45
|
+
const val = getUserPixiConfig(content, packageFile);
|
46
|
+
if (!val) {
|
41
47
|
return null;
|
42
48
|
}
|
43
49
|
const lockfileName = (0, fs_1.getSiblingFileName)(packageFile, 'pixi.lock');
|
@@ -45,9 +51,81 @@ async function extractPackageFile(content, packageFile) {
|
|
45
51
|
if (await (0, fs_1.localPathExists)(lockfileName)) {
|
46
52
|
lockFiles.push(lockfileName);
|
47
53
|
}
|
54
|
+
const project = val.project;
|
55
|
+
const channelPriority = project['channel-priority'];
|
56
|
+
let registryStrategy;
|
57
|
+
if (channelPriority === 'disabled') {
|
58
|
+
registryStrategy = 'merge';
|
59
|
+
}
|
60
|
+
// resolve channels and build registry urls for each channel with order
|
61
|
+
const conda = [];
|
62
|
+
for (const item of val.conda) {
|
63
|
+
conda.push(addRegistryUrls({
|
64
|
+
...item,
|
65
|
+
channels: project.channels,
|
66
|
+
registryStrategy,
|
67
|
+
}));
|
68
|
+
}
|
69
|
+
for (const item of val.feature.conda) {
|
70
|
+
conda.push(addRegistryUrls({
|
71
|
+
...item,
|
72
|
+
registryStrategy,
|
73
|
+
channels: [...(0, array_1.coerceArray)(item.channels), ...project.channels],
|
74
|
+
}));
|
75
|
+
}
|
48
76
|
return {
|
49
77
|
lockFiles,
|
50
|
-
deps: [],
|
78
|
+
deps: [conda, val.pypi, val.feature.pypi].flat(),
|
79
|
+
};
|
80
|
+
}
|
81
|
+
function addRegistryUrls(item) {
|
82
|
+
const channels = orderChannels(item.channels);
|
83
|
+
if (item.channel) {
|
84
|
+
return {
|
85
|
+
...item,
|
86
|
+
channels,
|
87
|
+
registryUrls: [channelToRegistryUrl(item.channel)],
|
88
|
+
};
|
89
|
+
}
|
90
|
+
if (channels.length === 0) {
|
91
|
+
return {
|
92
|
+
...item,
|
93
|
+
channels,
|
94
|
+
skipStage: 'extract',
|
95
|
+
skipReason: 'unknown-registry',
|
96
|
+
};
|
97
|
+
}
|
98
|
+
const registryUrls = [];
|
99
|
+
for (const channel of channels) {
|
100
|
+
registryUrls.push(channelToRegistryUrl(channel));
|
101
|
+
}
|
102
|
+
return {
|
103
|
+
...item,
|
104
|
+
channels,
|
105
|
+
registryUrls,
|
51
106
|
};
|
52
107
|
}
|
108
|
+
function channelToRegistryUrl(channel) {
|
109
|
+
if ((0, url_1.isHttpUrl)(channel)) {
|
110
|
+
return (0, url_1.ensureTrailingSlash)(channel);
|
111
|
+
}
|
112
|
+
return (0, url_1.ensureTrailingSlash)((0, url_1.joinUrlParts)(common_1.defaultRegistryUrl, channel));
|
113
|
+
}
|
114
|
+
function orderChannels(channels = []) {
|
115
|
+
return channels
|
116
|
+
.map((channel, index) => {
|
117
|
+
if (is_1.default.string(channel)) {
|
118
|
+
return { channel, priority: 0, index };
|
119
|
+
}
|
120
|
+
return { ...channel, index: 0 };
|
121
|
+
})
|
122
|
+
.toSorted((a, b) => {
|
123
|
+
// first based on priority then based on index
|
124
|
+
if (a.priority !== b.priority) {
|
125
|
+
return b.priority - a.priority;
|
126
|
+
}
|
127
|
+
return a.index - b.index;
|
128
|
+
})
|
129
|
+
.map((c) => c.channel);
|
130
|
+
}
|
53
131
|
//# sourceMappingURL=extract.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"extract.js","sourceRoot":"","sources":["../../../../lib/modules/manager/pixi/extract.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"extract.js","sourceRoot":"","sources":["../../../../lib/modules/manager/pixi/extract.ts"],"names":[],"mappings":";;AA0BA,8CAqCC;AAED,gDAsDC;;AAvHD,kEAAkC;AAClC,6BAAwB;AAExB,4CA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,IAAI,IAAA,eAAS,EAAC,OAAO,CAAC,EAAE,CAAC;QACvB,OAAO,IAAA,yBAAmB,EAAC,OAAO,CAAC,CAAC;IACtC,CAAC;IAED,OAAO,IAAA,yBAAmB,EAAC,IAAA,kBAAY,EAAC,2BAAuB,EAAE,OAAO,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,SAAS,aAAa,CAAC,WAAqB,EAAE;IAC5C,OAAO,QAAQ;SACZ,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE;QACtB,IAAI,YAAE,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;YACvB,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC;QACzC,CAAC;QAED,OAAO,EAAE,GAAG,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;IAClC,CAAC,CAAC;SACD,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACjB,8CAA8C;QAC9C,IAAI,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC;YAC9B,OAAO,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC;QACjC,CAAC;QAED,OAAO,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;IAC3B,CAAC,CAAC;SACD,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;AAC3B,CAAC","sourcesContent":["import is from '@sindresorhus/is';\nimport { z } from 'zod';\n\nimport { logger } from '../../../logger';\nimport { coerceArray } from '../../../util/array';\nimport { getSiblingFileName, localPathExists } from '../../../util/fs';\nimport { Result } from '../../../util/result';\nimport { Toml } from '../../../util/schema-utils';\nimport {\n ensureTrailingSlash,\n isHttpUrl,\n joinUrlParts,\n} from '../../../util/url';\nimport type { RegistryStrategy } from '../../datasource';\nimport { defaultRegistryUrl as defaultCondaRegistryApi } from '../../datasource/conda/common';\nimport { PyProjectSchema } from '../pep621/schema';\nimport type { PackageFileContent } from '../types';\nimport {\n type Channels,\n type PixiConfig,\n type PixiPackageDependency,\n PixiToml,\n} from './schema';\n\nconst PyProjectToml = Toml.pipe(PyProjectSchema);\n\nexport function getUserPixiConfig(\n content: string,\n packageFile: string,\n): null | PixiConfig {\n if (\n packageFile === 'pyproject.toml' ||\n packageFile.endsWith('/pyproject.toml')\n ) {\n const { val, err } = Result.parse(content, PyProjectToml).unwrap();\n if (err) {\n logger.debug({ packageFile, err }, `error parsing ${packageFile}`);\n return null;\n }\n\n return val.tool?.pixi ?? null;\n }\n\n if (packageFile === 'pixi.toml' || packageFile.endsWith('/pixi.toml')) {\n const { val, err } = Result.parse(content, PixiToml).unwrap();\n if (err) {\n logger.debug({ packageFile, err }, `error parsing ${packageFile}`);\n return null;\n }\n\n return val;\n }\n\n const { val, err } = Result.parse(\n content,\n z.union([PixiToml, PyProjectToml.transform((p) => p.tool?.pixi)]),\n ).unwrap();\n\n if (err) {\n logger.debug({ packageFile, err }, `error parsing ${packageFile}`);\n return null;\n }\n return val ?? null;\n}\n\nexport async function extractPackageFile(\n content: string,\n packageFile: string,\n): Promise<PackageFileContent | null> {\n logger.trace(`pixi.extractPackageFile(${packageFile})`);\n\n const val = getUserPixiConfig(content, packageFile);\n if (!val) {\n return null;\n }\n\n const lockfileName = getSiblingFileName(packageFile, 'pixi.lock');\n const lockFiles: string[] = [];\n if (await localPathExists(lockfileName)) {\n lockFiles.push(lockfileName);\n }\n\n const project = val.project;\n\n const channelPriority = project['channel-priority'];\n\n let registryStrategy: RegistryStrategy | undefined;\n\n if (channelPriority === 'disabled') {\n registryStrategy = 'merge';\n }\n\n // resolve channels and build registry urls for each channel with order\n const conda: PixiPackageDependency[] = [];\n\n for (const item of val.conda) {\n conda.push(\n addRegistryUrls({\n ...item,\n channels: project.channels,\n registryStrategy,\n }),\n );\n }\n\n for (const item of val.feature.conda) {\n conda.push(\n addRegistryUrls({\n ...item,\n registryStrategy,\n channels: [...coerceArray(item.channels), ...project.channels],\n }),\n );\n }\n\n return {\n lockFiles,\n deps: [conda, val.pypi, val.feature.pypi].flat(),\n };\n}\n\nfunction addRegistryUrls(item: PixiPackageDependency): PixiPackageDependency {\n const channels = orderChannels(item.channels);\n\n if (item.channel) {\n return {\n ...item,\n channels,\n registryUrls: [channelToRegistryUrl(item.channel)],\n };\n }\n\n if (channels.length === 0) {\n return {\n ...item,\n channels,\n skipStage: 'extract',\n skipReason: 'unknown-registry',\n };\n }\n\n const registryUrls: string[] = [];\n for (const channel of channels) {\n registryUrls.push(channelToRegistryUrl(channel));\n }\n\n return {\n ...item,\n channels,\n registryUrls,\n };\n}\n\nfunction channelToRegistryUrl(channel: string): string {\n if (isHttpUrl(channel)) {\n return ensureTrailingSlash(channel);\n }\n\n return ensureTrailingSlash(joinUrlParts(defaultCondaRegistryApi, channel));\n}\n\nfunction orderChannels(channels: Channels = []): string[] {\n return channels\n .map((channel, index) => {\n if (is.string(channel)) {\n return { channel, priority: 0, index };\n }\n\n return { ...channel, index: 0 };\n })\n .toSorted((a, b) => {\n // first based on priority then based on index\n if (a.priority !== b.priority) {\n return b.priority - a.priority;\n }\n\n return a.index - b.index;\n })\n .map((c) => c.channel);\n}\n"]}
|
@@ -1,10 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.supportedDatasources = exports.defaultConfig = exports.categories = exports.url = exports.supportsLockFileMaintenance = exports.updateArtifacts = exports.extractPackageFile =
|
3
|
+
exports.supportedDatasources = exports.defaultConfig = exports.categories = exports.url = exports.supportsLockFileMaintenance = exports.updateArtifacts = exports.extractPackageFile = void 0;
|
4
4
|
const conda_1 = require("../../datasource/conda");
|
5
5
|
const pypi_1 = require("../../datasource/pypi");
|
6
|
-
var update_1 = require("../pep621/update");
|
7
|
-
Object.defineProperty(exports, "bumpPackageVersion", { enumerable: true, get: function () { return update_1.bumpPackageVersion; } });
|
8
6
|
var extract_1 = require("./extract");
|
9
7
|
Object.defineProperty(exports, "extractPackageFile", { enumerable: true, get: function () { return extract_1.extractPackageFile; } });
|
10
8
|
var artifacts_1 = require("./artifacts");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/modules/manager/pixi/index.ts"],"names":[],"mappings":";;;AACA,kDAAyD;AACzD,gDAAuD;AAEvD,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/modules/manager/pixi/index.ts"],"names":[],"mappings":";;;AACA,kDAAyD;AACzD,gDAAuD;AAEvD,qCAA+C;AAAtC,6GAAA,kBAAkB,OAAA;AAC3B,yCAA8C;AAArC,4GAAA,eAAe,OAAA;AAEX,QAAA,2BAA2B,GAAG,IAAI,CAAC;AAEnC,QAAA,GAAG,GAAG,qCAAqC,CAAC;AAC5C,QAAA,UAAU,GAAe,CAAC,QAAQ,CAAC,CAAC;AAEpC,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE;QACT,wBAAwB,EAAE,sBAAsB;QAChD,mBAAmB,EAAE,cAAc;KACpC;CACF,CAAC;AAEW,QAAA,oBAAoB,GAAG,CAAC,qBAAc,CAAC,EAAE,EAAE,uBAAe,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import type { Category } from '../../../constants';\nimport { CondaDatasource } from '../../datasource/conda';\nimport { PypiDatasource } from '../../datasource/pypi';\n\nexport { extractPackageFile } from './extract';\nexport { updateArtifacts } from './artifacts';\n\nexport const supportsLockFileMaintenance = true;\n\nexport const url = 'https://github.com/prefix-dev/pixi/';\nexport const categories: Category[] = ['python'];\n\nexport const defaultConfig = {\n fileMatch: [\n '(^|/)pyproject\\\\.toml$', // `tool.pixi` section\n '(^|/)pixi\\\\.toml$', // root object\n ],\n};\n\nexport const supportedDatasources = [PypiDatasource.id, CondaDatasource.id];\n"]}
|