1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2025-04-20 11:46:22 +02:00

Clean import orders

This commit is contained in:
Ethan Dennis 2020-03-17 16:42:23 -07:00
parent 072d513f28
commit 3e55aff829
No known key found for this signature in database
GPG key ID: 32E74B75DB4065DD

View file

@ -1,8 +1,8 @@
import { exec } from "@actions/exec";
import * as io from "@actions/io"; import * as io from "@actions/io";
import { existsSync, writeFileSync } from "fs";
import * as path from "path"; import * as path from "path";
import { CacheFilename } from "./constants"; import { CacheFilename } from "./constants";
import { exec } from "@actions/exec";
import { existsSync, writeFileSync } from "fs";
async function getTarPath(): Promise<string> { async function getTarPath(): Promise<string> {
// Explicitly use BSD Tar on Windows // Explicitly use BSD Tar on Windows
@ -20,8 +20,6 @@ async function execTar(args: string[], cwd?: string): Promise<void> {
try { try {
await exec(`"${await getTarPath()}"`, args, { cwd: cwd }); await exec(`"${await getTarPath()}"`, args, { cwd: cwd });
} catch (error) { } catch (error) {
console.log("error", error);
const IS_WINDOWS = process.platform === "win32"; const IS_WINDOWS = process.platform === "win32";
if (IS_WINDOWS) { if (IS_WINDOWS) {
throw new Error( throw new Error(