Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4b5d61d

Browse files
author
vinay-lanka
committed
add git library imports
have added a --git-url flag to lib install takes the git url and extracts it to the libraries directory
1 parent b2fad77 commit 4b5d61d

File tree

4 files changed

+25
-80
lines changed

4 files changed

+25
-80
lines changed

‎arduino/libraries/librariesmanager/install.go‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"errors"
2121
"fmt"
2222
"io"
23-
"log"
2423
"os"
2524
"path/filepath"
2625
"strings"
@@ -101,7 +100,7 @@ func (lm *LibrariesManager) InstallZipLib(libPath string) error {
101100
}
102101
err := Unzip(libPath, libsDir.String())
103102
if err != nil {
104-
log.Fatal(err)
103+
returnerr
105104
}
106105
return nil
107106
}

‎go.mod‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,21 @@ require (
2222
github.com/juju/loggo v0.0.0-20190526231331-6e530bcce5d8 // indirect
2323
github.com/leonelquinteros/gotext v1.4.0
2424
github.com/marcinbor85/gohex v0.0.0-20200531163658-baab2527a9a2
25+
github.com/juju/testing v0.0.0-20190429233213-dfc56b8c09fc // indirect
26+
github.com/kr/pretty v0.2.0 // indirect
27+
github.com/kr/text v0.2.0 // indirect
2528
github.com/mattn/go-colorable v0.1.2
2629
github.com/mattn/go-isatty v0.0.8
2730
github.com/mattn/go-runewidth v0.0.9 // indirect
2831
github.com/miekg/dns v1.0.5 // indirect
32+
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
2933
github.com/oleksandr/bonjour v0.0.0-20160508152359-5dcf00d8b228 // indirect
3034
github.com/pkg/errors v0.9.1
3135
github.com/pmylund/sortutil v0.0.0-20120526081524-abeda66eb583
3236
github.com/rifflock/lfshook v0.0.0-20180920164130-b9218ef580f5
3337
github.com/schollz/closestmatch v2.1.0+incompatible
3438
github.com/segmentio/stats/v4 v4.5.3
39+
github.com/sergi/go-diff v1.1.0 // indirect
3540
github.com/sirupsen/logrus v1.4.2
3641
github.com/spf13/cobra v1.0.1-0.20200710201246-675ae5f5a98c
3742
github.com/spf13/jwalterweatherman v1.0.0
@@ -42,12 +47,17 @@ require (
4247
go.bug.st/relaxed-semver v0.0.0-20190922224835-391e10178d18
4348
go.bug.st/serial v1.1.1
4449
go.bug.st/serial.v1 v0.0.0-20180827123349-5f7892a7bb45 // indirect
45-
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4
46-
golang.org/x/net v0.0.0-20200202094626-16171245cfb2
50+
golang.org/x/crypto v0.0.0-20200406173513-056763e48d71 // indirect
51+
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e
52+
golang.org/x/sys v0.0.0-20200408040146-ea54a3c99b9b // indirect
4753
golang.org/x/text v0.3.2
4854
google.golang.org/grpc v1.27.0
4955
google.golang.org/protobuf v1.25.0
5056
gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce // indirect
5157
gopkg.in/src-d/go-git.v4 v4.13.1
5258
gopkg.in/yaml.v2 v2.3.0
59+
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
60+
gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce // indirect
61+
gopkg.in/src-d/go-git.v4 v4.13.1
62+
gopkg.in/yaml.v2 v2.2.4
5363
)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /