mirror of
https://github.com/moonrepo/setup-rust.git
synced 2025-04-29 21:40:01 +00:00
fix: Remove dynamic import.
This commit is contained in:
parent
889bf1db60
commit
deec13b3d0
3 changed files with 6 additions and 2 deletions
|
@ -2,6 +2,7 @@ import crypto from 'node:crypto';
|
|||
import fs from 'node:fs';
|
||||
import os from 'node:os';
|
||||
import path from 'node:path';
|
||||
import { family } from 'detect-libc';
|
||||
import * as cache from '@actions/cache';
|
||||
import * as core from '@actions/core';
|
||||
import * as exec from '@actions/exec';
|
||||
|
@ -38,7 +39,6 @@ export async function downloadAndInstallBinstall(binDir: string) {
|
|||
|
||||
switch (process.platform) {
|
||||
case 'linux': {
|
||||
const { family } = await import('detect-libc');
|
||||
let lib = 'gnu';
|
||||
|
||||
if ((await family()) === 'musl') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue