fix: rename sudo-tools to root-tools

This commit is contained in:
Amin Yahyaabadi 2022-08-07 17:38:34 -07:00
parent 92711bc219
commit b77e674a50
19 changed files with 19 additions and 27 deletions

View File

@ -14,13 +14,12 @@ words:
- applellvm
- bazel
- bazelisk
- copr
- vbatts
- buildtools
- caxa
- ccache
- choco
- cmake
- copr
- CPATH
- Cppcheck
- CPPFLAGS
@ -38,6 +37,7 @@ words:
- ghes
- Graphviz
- isci
- isroot
- kcov
- LDFLAGS
- lefticus
@ -68,6 +68,7 @@ words:
- tsbuildinfo
- ucrt
- untildify
- vbatts
- vcpkg
- vcvarsall
- visualc

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/setup_cpp.mjs vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -62,7 +62,7 @@
"numerous": "1.0.3",
"semver": "7.3.7",
"setup-python": "github:actions/setup-python#c474c82340438924daab9282d07300bfe7e3692d",
"sudo-tools": "workspace:*",
"root-tools": "workspace:*",
"time-delta": "github:aminya/time-delta#69d91a41cef28e569be9a2991129f5f7d1f0d00e",
"ubuntu-version": "^2.0.0",
"untildify": "^4.0.0",

View File

@ -1,7 +1,7 @@
{
"name": "sudo-tools",
"name": "root-tools",
"version": "1.0.0",
"description": "Tools for working with sudo: executing command as sudo if available, detecting root, etc.",
"description": "Tools for working with root and sudo such as executing command as root, detecting root, etc.",
"homepage": "https://github.com/aminya/setup-cpp",
"license": "Apache-2.0",
"author": "Amin Yahyaabadi",
@ -24,6 +24,9 @@
"is-root",
"is-sudo",
"exec-sudo",
"exec-root",
"isroot",
"issudo",
"exec",
"execa",
"spawn",

View File

@ -41,10 +41,10 @@ importers:
parcel: 2.6.2
prettier: 2.7.1
prettier-config-atomic: ^3.0.10
root-tools: workspace:*
semver: 7.3.7
setup-python: github:actions/setup-python#c474c82340438924daab9282d07300bfe7e3692d
shx: 0.3.4
sudo-tools: workspace:*
terser-config-atomic: ^0.1.1
time-delta: github:aminya/time-delta#69d91a41cef28e569be9a2991129f5f7d1f0d00e
ts-jest: ^28.0.7
@ -63,9 +63,9 @@ importers:
mri: 1.2.0
msvc-dev-cmd: github.com/aminya/msvc-dev-cmd/9f672c1
numerous: 1.0.3
root-tools: link:packages/sudo-tools
semver: 7.3.7
setup-python: github.com/actions/setup-python/c474c82340438924daab9282d07300bfe7e3692d
sudo-tools: link:packages/sudo-tools
time-delta: github.com/aminya/time-delta/69d91a41cef28e569be9a2991129f5f7d1f0d00e
ubuntu-version: 2.0.0
untildify: 4.0.0

View File

@ -5,7 +5,7 @@ import { isArch } from "../utils/env/isArch"
import { hasDnf } from "../utils/env/hasDnf"
import { setupDnfPack } from "../utils/setup/setupDnfPack"
import { isUbuntu } from "../utils/env/isUbuntu"
import { execRootSync } from "sudo-tools"
import { execRootSync } from "root-tools"
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export async function setupBazel(version: string, _setupDir: string, _arch: string) {

View File

@ -1,7 +1,7 @@
import { dirname } from "path"
import which from "which"
import { isUbuntu } from "../utils/env/isUbuntu"
import { execRootSync } from "sudo-tools"
import { execRootSync } from "root-tools"
import { addAptKeyViaDownload, setupAptPack } from "../utils/setup/setupAptPack"
let binDir: string | undefined

View File

@ -1,5 +1,5 @@
import { isSudo } from "sudo-tools"
import { execRootSync } from "sudo-tools"
import { isSudo } from "root-tools"
import { execRootSync } from "root-tools"
/// change the owner to the SUDO_USER. This is required so the user can use the folder without sudo
export function folderUserAccess(folder: string) {

View File

@ -1,6 +1,6 @@
import { join } from "path"
import untildify from "untildify"
import { isSudo } from "sudo-tools"
import { isSudo } from "root-tools"
export function untildify_user(path: string) {
if (isSudo() && typeof process.env.SUDO_USER === "string") {

View File

@ -1,6 +1,6 @@
/* eslint-disable require-atomic-updates */
import { InstallationInfo } from "./setupBin"
import { execRootSync } from "sudo-tools"
import { execRootSync } from "root-tools"
import { info } from "@actions/core"
import { isGitHubCI } from "../env/isCI"
import { addEnv, cpprc_path, setupCppInProfile } from "../env/addEnv"

View File

@ -1,6 +1,6 @@
/* eslint-disable require-atomic-updates */
import { InstallationInfo } from "./setupBin"
import { execRootSync } from "sudo-tools"
import { execRootSync } from "root-tools"
import { info, warning } from "../io/io"
// let didUpdate: boolean = false

View File

@ -1,6 +1,6 @@
/* eslint-disable require-atomic-updates */
import { InstallationInfo } from "./setupBin"
import { execRootSync } from "sudo-tools"
import { execRootSync } from "root-tools"
import { info } from "../io/io"
let didUpdate: boolean = false