@eui/tools 6.21.113 → 6.21.114
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/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.21.
|
|
1
|
+
6.21.114
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.21.114 (2025-09-04)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* adapted for local sdlc init fetch of host related repositories - MWP-11955 [MWP-11955](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-11955) ([578d74c0](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/578d74c0195955fa4ce278ee04a1630431f60e69))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.21.113 (2025-09-02)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
|
@@ -86,7 +86,7 @@ module.exports.cloneHostPackage = (prj) => {
|
|
|
86
86
|
throw new Error('Invalid host package provided / unknown to CSDR config');
|
|
87
87
|
}
|
|
88
88
|
if (configUtils.global.isCsdr()) {
|
|
89
|
-
return gitUtils.cloneAndCheckout(pkg.repository, path.join(process.cwd(), 'packages', pkg.name), 'master');
|
|
89
|
+
return gitUtils.cloneAndCheckout(pkg.repository, path.join(process.cwd(), 'packages', pkg.name), 'master', false, false, true);
|
|
90
90
|
} else {
|
|
91
91
|
return gitUtils.cloneRepoStandalone(pkg.name, path.join(process.cwd(), 'packages', pkg.name));
|
|
92
92
|
}
|
|
@@ -78,7 +78,12 @@ const cloneAndCheckout = (repo, args) => {
|
|
|
78
78
|
} else {
|
|
79
79
|
cloneBranch = args.branch;
|
|
80
80
|
}
|
|
81
|
-
|
|
81
|
+
|
|
82
|
+
let sdlc = false;
|
|
83
|
+
if (repo.uri.indexOf('myworkplace-ui/') > -1) {
|
|
84
|
+
sdlc = true;
|
|
85
|
+
}
|
|
86
|
+
return gitUtils.cloneAndCheckout(repo.uri, repo.folder, cloneBranch, false, shallowClone, sdlc);
|
|
82
87
|
})
|
|
83
88
|
|
|
84
89
|
.catch((e) => {
|
|
@@ -247,7 +247,7 @@ const mergeSupportToSupportDevelop = (pkg, folder, supportBranch, supportSnapsho
|
|
|
247
247
|
|
|
248
248
|
|
|
249
249
|
|
|
250
|
-
const getGitHost = (externalRepo) => {
|
|
250
|
+
const getGitHost = (externalRepo, sdlc = false) => {
|
|
251
251
|
const config = configUtils.global.getConfig();
|
|
252
252
|
|
|
253
253
|
if (config.git) {
|
|
@@ -255,7 +255,11 @@ const getGitHost = (externalRepo) => {
|
|
|
255
255
|
if (externalRepo) {
|
|
256
256
|
return config.git.externals.local;
|
|
257
257
|
} else {
|
|
258
|
-
|
|
258
|
+
if (sdlc) {
|
|
259
|
+
return config.git.sdlc;
|
|
260
|
+
} else {
|
|
261
|
+
return config.git.local;
|
|
262
|
+
}
|
|
259
263
|
}
|
|
260
264
|
|
|
261
265
|
} else if (git && git === 'sdlc') {
|
|
@@ -315,7 +319,7 @@ const cloneRepoStandalone = (repoName, destinationFolder) => {
|
|
|
315
319
|
|
|
316
320
|
|
|
317
321
|
|
|
318
|
-
const cloneRepo = (repoUri, folder, forced = false, shallow = false, externalRepo = false) => {
|
|
322
|
+
const cloneRepo = (repoUri, folder, forced = false, shallow = false, externalRepo = false, sdlc = false) => {
|
|
319
323
|
if (!repoUri) {
|
|
320
324
|
tools.logWarning('Repository not set -- bypassing clone...');
|
|
321
325
|
return;
|
|
@@ -334,7 +338,7 @@ const cloneRepo = (repoUri, folder, forced = false, shallow = false, externalRep
|
|
|
334
338
|
tools.logInfo(`Cloning ${repoUri} in folder "${folder}" ...`);
|
|
335
339
|
|
|
336
340
|
const auth = process.env.gituser && process.env.gitpassword ? `${process.env.gituser}:${process.env.gitpassword}@` : '';
|
|
337
|
-
const gitHost = getGitHost(externalRepo);
|
|
341
|
+
const gitHost = getGitHost(externalRepo, sdlc);
|
|
338
342
|
|
|
339
343
|
if (shallow) {
|
|
340
344
|
execa.shellSync(`git clone --depth 1 https://${auth}${gitHost}${repoUri} ${folder}`);
|
|
@@ -399,7 +403,7 @@ const checkout = (branch, folder, shallow = false) => {
|
|
|
399
403
|
}
|
|
400
404
|
|
|
401
405
|
|
|
402
|
-
const cloneAndCheckout = (repoUri, folder, branch, forced, shallow) => {
|
|
406
|
+
const cloneAndCheckout = (repoUri, folder, branch, forced = false, shallow = false, sdlc = false) => {
|
|
403
407
|
if (!repoUri) {
|
|
404
408
|
tools.logWarning('Repository set to false -- clone deactivated');
|
|
405
409
|
return;
|
|
@@ -409,7 +413,7 @@ const cloneAndCheckout = (repoUri, folder, branch, forced, shallow) => {
|
|
|
409
413
|
|
|
410
414
|
return Promise.resolve()
|
|
411
415
|
.then(() => {
|
|
412
|
-
return cloneRepo(repoUri, folder, forced, shallow);
|
|
416
|
+
return cloneRepo(repoUri, folder, forced, shallow, false, sdlc);
|
|
413
417
|
})
|
|
414
418
|
|
|
415
419
|
.then(() => {
|