From 1c8df603b9bfa995a6048849a6b932788a18c0fb Mon Sep 17 00:00:00 2001 From: Gorbunov Kirill Andreevich Date: Fri, 15 Mar 2024 21:18:58 +0300 Subject: [PATCH] #8 Finished the update I need to redo the call of these methods. --- Makefile | 4 ++++ go.mod | 1 + internal/configcli/config.go | 6 ++++++ 3 files changed, 11 insertions(+) diff --git a/Makefile b/Makefile index d7d1440..fb3315a 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,10 @@ buildcli: cli: go install git.unistack.org/unistack-org/pkgdash/cmd/pkgdashcli +.PHONY: buildcli +buildcli: + CGO_ENABLED=0 go build -o bin/app -mod=readonly git.unistack.org/unistack-org/pkgdash/cmd/pkgdashcli + .PHONY: test test: go test -v ./... -race -cover diff --git a/go.mod b/go.mod index 05fbd1b..6beb75c 100644 --- a/go.mod +++ b/go.mod @@ -80,6 +80,7 @@ require ( github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect github.com/jackc/pgtype v1.14.0 // indirect github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect + github.com/jdx/go-netrc v1.0.0 // indirect github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect github.com/kevinburke/ssh_config v1.2.0 // indirect github.com/lyft/protoc-gen-star/v2 v2.0.3 // indirect diff --git a/internal/configcli/config.go b/internal/configcli/config.go index 79f793c..fa88533 100644 --- a/internal/configcli/config.go +++ b/internal/configcli/config.go @@ -34,3 +34,9 @@ func NewConfig() *Config { UpdateOpt: &UpdateOpt{}, } } + +func NewConfig() *Config { + return &Config{ + Source: &Source{}, + } +}