Skip to content

Commit

Permalink
ADD full import path for osDiscovery and packageLookup pacakges
Browse files Browse the repository at this point in the history
  • Loading branch information
Uros Slana committed May 25, 2017
1 parent 77be459 commit 4763c6e
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 10 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ $(PKGDIR)/%: build ## creates the artifact for a specific distribution
./build/=/

# BUILD
build: ;## builds the code for a specific distribution
$(BUILDDIR):
build: ;## builds the code
mkdir -p $@$(PATH_BIN)
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -installsuffix cgo \
-ldflags $(FLAGS) -o $@$(PATH_BIN)/tactycal
Expand Down
3 changes: 2 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package main

import (
"agent/packageLookup"
"bytes"
"encoding/json"
"fmt"
"net/http"
"net/url"
"time"

"github.com/tactycal/agent/packageLookup"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion client_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package main

import (
"agent/packageLookup"
"encoding/json"
"fmt"
"io/ioutil"
Expand All @@ -11,6 +10,8 @@ import (
"reflect"
"strings"
"testing"

"github.com/tactycal/agent/packageLookup"
)

func TestAuthenticate_Ok(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion host.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "agent/osDiscovery"
import "github.com/tactycal/agent/osDiscovery"

type Host struct {
Fqdn string `json:"fqdn"`
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package main

import (
"agent/packageLookup"
"flag"
"fmt"
"io/ioutil"
"os"
"os/exec"

"github.com/tactycal/agent/packageLookup"
)

func main() {
Expand Down
10 changes: 7 additions & 3 deletions osDiscovery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ package main

import (
"fmt"
"github.com/tactycal/osDiscovery"
"github.com/tactycal/agent/osDiscovery"
)

func main() {
osInfo := osDiscovery.Get()
fmt.Printf("%+v\n", osInfo)
osInfo, err := osDiscovery.Get()
if err != nil {
fmt.Println(err)
} else {
fmt.Printf("%+v\n", osInfo)
}
}
```
2 changes: 1 addition & 1 deletion packageLookup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package main

import (
"fmt"
"github.com/tactycal/packageLookup"
"github.com/tactycal/agent/packageLookup"
)

func main() {
Expand Down

0 comments on commit 4763c6e

Please sign in to comment.