Skip to content

Commit

Permalink
fix: Remove dynamic import.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Aug 2, 2023
1 parent 889bf1d commit deec13b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/cargo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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') {
Expand Down

0 comments on commit deec13b

Please sign in to comment.