Skip to content

Trying wsl #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .codacy/codacy.yaml
13 changes: 5 additions & 8 deletions cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
cfg "codacy/cli-v2/config"
config_file "codacy/cli-v2/config-file"
"fmt"
"io"
"log"
"os"
"time"
Expand Down Expand Up @@ -127,10 +126,9 @@ var installCmd = &cobra.Command{
)

// Redirect all output to /dev/null during installation
oldStdout := os.Stdout
devNull, _ := os.Open(os.DevNull)
os.Stdout = devNull
log.SetOutput(io.Discard)
// devNull, _ := os.Open(os.DevNull)
// os.Stdout = devNull
// log.SetOutput(io.Discard)

// Install runtimes first
for name, runtime := range cfg.Config.Runtimes() {
Expand All @@ -157,9 +155,8 @@ var installCmd = &cobra.Command{
}

// Restore output
os.Stdout = oldStdout
devNull.Close()
log.SetOutput(os.Stderr)
// devNull.Close()
// log.SetOutput(os.Stderr)

// Print completion status
fmt.Println()
Expand Down
6 changes: 6 additions & 0 deletions codacy-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ case "$arch" in
"x86")
arch="386"
;;
"arm64")
arch="arm64"
;;
"aarch64")
arch="arm64"
;;
esac

if [ -z "$CODACY_CLI_V2_TMP_FOLDER" ]; then
Expand Down
Loading
Loading