mirror of
https://github.com/moonrepo/setup-rust.git
synced 2025-04-19 09:08:43 +00:00
fix: Remove dynamic import.
This commit is contained in:
parent
889bf1db60
commit
deec13b3d0
3 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
# 1.0.1
|
||||
|
||||
- Fixed an issue where a module was missing from the build.
|
||||
|
||||
# 1.0.0
|
||||
|
||||
- Will now install `rustup` if it does not exist in the environment.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@moonrepo/setup-rust",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"description": "A GitHub action for setting up Rust and Cargo.",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -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
Reference in a new issue