Skip to content

Commit 7fe15a8

Browse files
authored
ci(evergreen): Force rebuild by passing a fake tag prefix to electron-rebuild (#2848)
1 parent 8524226 commit 7fe15a8

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.evergreen.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ tasks:
440440
compass_distribution: compass
441441
- func: package
442442
vars:
443-
debug: 'hadron*,mongo*,compass*'
443+
debug: 'hadron*,mongo*,compass*,electron*'
444444
compass_distribution: compass
445445
- func: save-windows-artifacts
446446
vars:
@@ -472,7 +472,7 @@ tasks:
472472
compass_distribution: compass-isolated
473473
- func: package
474474
vars:
475-
debug: 'hadron*,mongo*,compass*'
475+
debug: 'hadron*,mongo*,compass*,electron*'
476476
compass_distribution: compass-isolated
477477
- func: save-windows-artifacts
478478
vars:
@@ -504,7 +504,7 @@ tasks:
504504
compass_distribution: compass-readonly
505505
- func: package
506506
vars:
507-
debug: 'hadron*,mongo*,compass*'
507+
debug: 'hadron*,mongo*,compass*,electron*'
508508
compass_distribution: compass-readonly
509509
- func: save-windows-artifacts
510510
vars:

packages/hadron-build/commands/release.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,13 @@ const installDependencies = util.callbackify(async(CONFIG) => {
295295
// dependencies inside project root, but outside of their dependants (e.g.
296296
// a transitive dependency that was hoisted by npm installation process)
297297
projectRootPath: appPackagePath,
298-
force: true
298+
force: true,
299+
// We want to ensure that we are actually rebuilding native modules on the
300+
// platform we are packaging. There is currently no direct way of passing a
301+
// --build-from-source flag to rebuild-install package, but we can force
302+
// rebuild by providing a tag prefix that will make prebuild think that
303+
// prebuilt files don't exist
304+
prebuildTagPrefix: 'totally-not-a-real-prefix-to-force-rebuild'
299305
});
300306

301307
cli.debug('Native modules rebuilt against Electron.');

0 commit comments

Comments
 (0)