Skip to content

Commit deec13b

Browse files
committed
fix: Remove dynamic import.
1 parent 889bf1d commit deec13b

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.0.1
2+
3+
- Fixed an issue where a module was missing from the build.
4+
15
# 1.0.0
26

37
- Will now install `rustup` if it does not exist in the environment.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@moonrepo/setup-rust",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "A GitHub action for setting up Rust and Cargo.",
55
"main": "dist/index.js",
66
"scripts": {

src/cargo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import crypto from 'node:crypto';
22
import fs from 'node:fs';
33
import os from 'node:os';
44
import path from 'node:path';
5+
import { family } from 'detect-libc';
56
import * as cache from '@actions/cache';
67
import * as core from '@actions/core';
78
import * as exec from '@actions/exec';
@@ -38,7 +39,6 @@ export async function downloadAndInstallBinstall(binDir: string) {
3839

3940
switch (process.platform) {
4041
case 'linux': {
41-
const { family } = await import('detect-libc');
4242
let lib = 'gnu';
4343

4444
if ((await family()) === 'musl') {

0 commit comments

Comments
 (0)