diff --git a/api/plugins/loader/loader.go b/api/plugins/loader/loader.go index b36c54e46..dd0467920 100644 --- a/api/plugins/loader/loader.go +++ b/api/plugins/loader/loader.go @@ -150,7 +150,7 @@ func (l *Loader) loadPlugin(resId resid.ResId) (resmap.Configurable, error) { if err == nil { return p, nil } - if err != nil && !os.IsNotExist(err) { + if !os.IsNotExist(err) { return nil, err } c, err := l.loadGoPlugin(resId) diff --git a/hacks/awker.sh b/hack/awker.sh similarity index 100% rename from hacks/awker.sh rename to hack/awker.sh diff --git a/hacks/crawl/README.md b/hack/crawl/README.md similarity index 100% rename from hacks/crawl/README.md rename to hack/crawl/README.md diff --git a/hacks/crawl/ROADMAP.md b/hack/crawl/ROADMAP.md similarity index 100% rename from hacks/crawl/ROADMAP.md rename to hack/crawl/ROADMAP.md diff --git a/hacks/crawl/backend/search_backend.go b/hack/crawl/backend/search_backend.go similarity index 99% rename from hacks/crawl/backend/search_backend.go rename to hack/crawl/backend/search_backend.go index 8dbc08ab1..f3b117554 100644 --- a/hacks/crawl/backend/search_backend.go +++ b/hack/crawl/backend/search_backend.go @@ -13,7 +13,7 @@ import ( "github.com/gorilla/mux" "github.com/rs/cors" - "sigs.k8s.io/kustomize/hacks/crawl/index" + "sigs.k8s.io/kustomize/hack/crawl/index" ) type kustomizeSearch struct { diff --git a/hacks/crawl/cmd/backend/Dockerfile b/hack/crawl/cmd/backend/Dockerfile similarity index 100% rename from hacks/crawl/cmd/backend/Dockerfile rename to hack/crawl/cmd/backend/Dockerfile diff --git a/hacks/crawl/cmd/backend/main.go b/hack/crawl/cmd/backend/main.go similarity index 90% rename from hacks/crawl/cmd/backend/main.go rename to hack/crawl/cmd/backend/main.go index 1decd9b40..e234a434b 100644 --- a/hacks/crawl/cmd/backend/main.go +++ b/hack/crawl/cmd/backend/main.go @@ -4,7 +4,7 @@ import ( "context" "log" "os" - server "sigs.k8s.io/kustomize/hacks/crawl/backend" + server "sigs.k8s.io/kustomize/hack/crawl/backend" "strconv" ) diff --git a/hacks/crawl/config/base/kustomization.yaml b/hack/crawl/config/base/kustomization.yaml similarity index 100% rename from hacks/crawl/config/base/kustomization.yaml rename to hack/crawl/config/base/kustomization.yaml diff --git a/hacks/crawl/config/crawler/base/kustomization.yaml b/hack/crawl/config/crawler/base/kustomization.yaml similarity index 100% rename from hacks/crawl/config/crawler/base/kustomization.yaml rename to hack/crawl/config/crawler/base/kustomization.yaml diff --git a/hacks/crawl/config/crawler/cronjob/cronjob.yaml b/hack/crawl/config/crawler/cronjob/cronjob.yaml similarity index 100% rename from hacks/crawl/config/crawler/cronjob/cronjob.yaml rename to hack/crawl/config/crawler/cronjob/cronjob.yaml diff --git a/hacks/crawl/config/crawler/cronjob/kustomization.yaml b/hack/crawl/config/crawler/cronjob/kustomization.yaml similarity index 100% rename from hacks/crawl/config/crawler/cronjob/kustomization.yaml rename to hack/crawl/config/crawler/cronjob/kustomization.yaml diff --git a/hacks/crawl/config/crawler/job/job.yaml b/hack/crawl/config/crawler/job/job.yaml similarity index 100% rename from hacks/crawl/config/crawler/job/job.yaml rename to hack/crawl/config/crawler/job/job.yaml diff --git a/hacks/crawl/config/crawler/job/kustomization.yaml b/hack/crawl/config/crawler/job/kustomization.yaml similarity index 100% rename from hacks/crawl/config/crawler/job/kustomization.yaml rename to hack/crawl/config/crawler/job/kustomization.yaml diff --git a/hacks/crawl/config/redis/document_keystore/kustomization.yaml b/hack/crawl/config/redis/document_keystore/kustomization.yaml similarity index 100% rename from hacks/crawl/config/redis/document_keystore/kustomization.yaml rename to hack/crawl/config/redis/document_keystore/kustomization.yaml diff --git a/hacks/crawl/config/redis/document_keystore/redis.yaml b/hack/crawl/config/redis/document_keystore/redis.yaml similarity index 100% rename from hacks/crawl/config/redis/document_keystore/redis.yaml rename to hack/crawl/config/redis/document_keystore/redis.yaml diff --git a/hacks/crawl/config/redis/document_keystore/service.yaml b/hack/crawl/config/redis/document_keystore/service.yaml similarity index 100% rename from hacks/crawl/config/redis/document_keystore/service.yaml rename to hack/crawl/config/redis/document_keystore/service.yaml diff --git a/hacks/crawl/config/redis/http_cache/kustomization.yaml b/hack/crawl/config/redis/http_cache/kustomization.yaml similarity index 100% rename from hacks/crawl/config/redis/http_cache/kustomization.yaml rename to hack/crawl/config/redis/http_cache/kustomization.yaml diff --git a/hacks/crawl/config/redis/http_cache/redis.yaml b/hack/crawl/config/redis/http_cache/redis.yaml similarity index 100% rename from hacks/crawl/config/redis/http_cache/redis.yaml rename to hack/crawl/config/redis/http_cache/redis.yaml diff --git a/hacks/crawl/config/redis/http_cache/service.yaml b/hack/crawl/config/redis/http_cache/service.yaml similarity index 100% rename from hacks/crawl/config/redis/http_cache/service.yaml rename to hack/crawl/config/redis/http_cache/service.yaml diff --git a/hacks/crawl/config/webapp/backend/deployment.yaml b/hack/crawl/config/webapp/backend/deployment.yaml similarity index 100% rename from hacks/crawl/config/webapp/backend/deployment.yaml rename to hack/crawl/config/webapp/backend/deployment.yaml diff --git a/hacks/crawl/config/webapp/backend/kustomization.yaml b/hack/crawl/config/webapp/backend/kustomization.yaml similarity index 100% rename from hacks/crawl/config/webapp/backend/kustomization.yaml rename to hack/crawl/config/webapp/backend/kustomization.yaml diff --git a/hacks/crawl/config/webapp/backend/service.yaml b/hack/crawl/config/webapp/backend/service.yaml similarity index 100% rename from hacks/crawl/config/webapp/backend/service.yaml rename to hack/crawl/config/webapp/backend/service.yaml diff --git a/hacks/crawl/config/webapp/frontend/deployment.yaml b/hack/crawl/config/webapp/frontend/deployment.yaml similarity index 100% rename from hacks/crawl/config/webapp/frontend/deployment.yaml rename to hack/crawl/config/webapp/frontend/deployment.yaml diff --git a/hacks/crawl/config/webapp/frontend/kustomization.yaml b/hack/crawl/config/webapp/frontend/kustomization.yaml similarity index 100% rename from hacks/crawl/config/webapp/frontend/kustomization.yaml rename to hack/crawl/config/webapp/frontend/kustomization.yaml diff --git a/hacks/crawl/config/webapp/frontend/service.yaml b/hack/crawl/config/webapp/frontend/service.yaml similarity index 100% rename from hacks/crawl/config/webapp/frontend/service.yaml rename to hack/crawl/config/webapp/frontend/service.yaml diff --git a/hacks/crawl/crawler/crawler.go b/hack/crawl/crawler/crawler.go similarity index 98% rename from hacks/crawl/crawler/crawler.go rename to hack/crawl/crawler/crawler.go index b7e02994e..a4df8b8cd 100644 --- a/hacks/crawl/crawler/crawler.go +++ b/hack/crawl/crawler/crawler.go @@ -12,7 +12,7 @@ import ( _ "github.com/gomodule/redigo/redis" - "sigs.k8s.io/kustomize/hacks/crawl/doc" + "sigs.k8s.io/kustomize/hack/crawl/doc" ) var ( @@ -208,8 +208,8 @@ func CRunner(ctx context.Context, // the main output channel. go func(docs <-chan CrawledDocument) { defer wg.Done() - for doc := range docs { - output <- doc + for d := range docs { + output <- d } }(docs) diff --git a/hacks/crawl/crawler/crawler_test.go b/hack/crawl/crawler/crawler_test.go similarity index 99% rename from hacks/crawl/crawler/crawler_test.go rename to hack/crawl/crawler/crawler_test.go index ba22eff74..e4fccd5a4 100644 --- a/hacks/crawl/crawler/crawler_test.go +++ b/hack/crawl/crawler/crawler_test.go @@ -12,7 +12,7 @@ import ( "time" "sigs.k8s.io/kustomize/api/pgmconfig" - "sigs.k8s.io/kustomize/hacks/crawl/doc" + "sigs.k8s.io/kustomize/hack/crawl/doc" ) const ( diff --git a/hacks/crawl/crawler/github/crawler.go b/hack/crawl/crawler/github/crawler.go similarity index 98% rename from hacks/crawl/crawler/github/crawler.go rename to hack/crawl/crawler/github/crawler.go index 6ad8dc47b..a4afa316b 100644 --- a/hacks/crawl/crawler/github/crawler.go +++ b/hack/crawl/crawler/github/crawler.go @@ -18,9 +18,9 @@ import ( "sigs.k8s.io/kustomize/api/git" "sigs.k8s.io/kustomize/api/pgmconfig" - "sigs.k8s.io/kustomize/hacks/crawl/crawler" - "sigs.k8s.io/kustomize/hacks/crawl/doc" - "sigs.k8s.io/kustomize/hacks/crawl/httpclient" + "sigs.k8s.io/kustomize/hack/crawl/crawler" + "sigs.k8s.io/kustomize/hack/crawl/doc" + "sigs.k8s.io/kustomize/hack/crawl/httpclient" ) var logger = log.New(os.Stdout, "Github Crawler: ", @@ -208,11 +208,6 @@ func kustomizationResultAdapter(gcl GhClient, k GhFileSpec) ( return nil, err } - if err != nil { - logger.Printf( - "(error: %v) initializing to current time.\n", err) - } - url := gcl.ReposRequest(k.Repository.FullName) defaultBranch, err := gcl.GetDefaultBranch(url) if err != nil { @@ -221,7 +216,7 @@ func kustomizationResultAdapter(gcl GhClient, k GhFileSpec) ( defaultBranch = "master" } - doc := doc.KustomizationDocument{ + d := doc.KustomizationDocument{ Document: doc.Document{ DocumentData: string(data), FilePath: k.Path, @@ -230,7 +225,7 @@ func kustomizationResultAdapter(gcl GhClient, k GhFileSpec) ( }, } - return &doc, nil + return &d, nil } // ForwardPaginatedQuery follows the links to the next pages and performs all of diff --git a/hacks/crawl/crawler/github/queries.go b/hack/crawl/crawler/github/queries.go similarity index 99% rename from hacks/crawl/crawler/github/queries.go rename to hack/crawl/crawler/github/queries.go index 0a2d4c440..3f6ca5d88 100644 --- a/hacks/crawl/crawler/github/queries.go +++ b/hack/crawl/crawler/github/queries.go @@ -9,8 +9,6 @@ import ( const ( perPageArg = "per_page" accessTokenArg = "access_token" - - githubMaxPageSize = 100 ) // Implementation detail, not important to external API. diff --git a/hacks/crawl/crawler/github/queries_test.go b/hack/crawl/crawler/github/queries_test.go similarity index 100% rename from hacks/crawl/crawler/github/queries_test.go rename to hack/crawl/crawler/github/queries_test.go diff --git a/hacks/crawl/crawler/github/split_search_ranges.go b/hack/crawl/crawler/github/split_search_ranges.go similarity index 100% rename from hacks/crawl/crawler/github/split_search_ranges.go rename to hack/crawl/crawler/github/split_search_ranges.go diff --git a/hacks/crawl/crawler/github/split_search_ranges_test.go b/hack/crawl/crawler/github/split_search_ranges_test.go similarity index 100% rename from hacks/crawl/crawler/github/split_search_ranges_test.go rename to hack/crawl/crawler/github/split_search_ranges_test.go diff --git a/hacks/crawl/doc/doc.go b/hack/crawl/doc/doc.go similarity index 97% rename from hacks/crawl/doc/doc.go rename to hack/crawl/doc/doc.go index fab22574a..5093d30b8 100644 --- a/hacks/crawl/doc/doc.go +++ b/hack/crawl/doc/doc.go @@ -4,14 +4,13 @@ import ( "fmt" "strings" - "sigs.k8s.io/kustomize/api/ifc" "sigs.k8s.io/kustomize/api/k8sdeps/kunstruct" "sigs.k8s.io/kustomize/api/pgmconfig" "sigs.k8s.io/kustomize/api/types" "sigs.k8s.io/yaml" ) -var fileReader ifc.KunstructuredFactory = kunstruct.NewKunstructuredFactoryImpl() +var fileReader = kunstruct.NewKunstructuredFactoryImpl() // This document is meant to be used at the elasticsearch document type. // Fields are serialized as-is to elasticsearch, where indices are built diff --git a/hacks/crawl/doc/doc_test.go b/hack/crawl/doc/doc_test.go similarity index 100% rename from hacks/crawl/doc/doc_test.go rename to hack/crawl/doc/doc_test.go diff --git a/hacks/crawl/doc/docname.go b/hack/crawl/doc/docname.go similarity index 100% rename from hacks/crawl/doc/docname.go rename to hack/crawl/doc/docname.go diff --git a/hacks/crawl/doc/docname_test.go b/hack/crawl/doc/docname_test.go similarity index 100% rename from hacks/crawl/doc/docname_test.go rename to hack/crawl/doc/docname_test.go diff --git a/hacks/crawl/doc/kustomize_util.go b/hack/crawl/doc/kustomize_util.go similarity index 100% rename from hacks/crawl/doc/kustomize_util.go rename to hack/crawl/doc/kustomize_util.go diff --git a/hacks/crawl/go.mod b/hack/crawl/go.mod similarity index 89% rename from hacks/crawl/go.mod rename to hack/crawl/go.mod index 2c4b36c9c..8723a2668 100644 --- a/hacks/crawl/go.mod +++ b/hack/crawl/go.mod @@ -1,4 +1,4 @@ -module sigs.k8s.io/kustomize/hacks/crawl +module sigs.k8s.io/kustomize/hack/crawl go 1.13 diff --git a/hacks/crawl/go.sum b/hack/crawl/go.sum similarity index 100% rename from hacks/crawl/go.sum rename to hack/crawl/go.sum diff --git a/hacks/crawl/httpclient/httpclient.go b/hack/crawl/httpclient/httpclient.go similarity index 100% rename from hacks/crawl/httpclient/httpclient.go rename to hack/crawl/httpclient/httpclient.go diff --git a/hacks/crawl/index/elasticsearch.go b/hack/crawl/index/elasticsearch.go similarity index 100% rename from hacks/crawl/index/elasticsearch.go rename to hack/crawl/index/elasticsearch.go diff --git a/hacks/crawl/index/kustomize.go b/hack/crawl/index/kustomize.go similarity index 99% rename from hacks/crawl/index/kustomize.go rename to hack/crawl/index/kustomize.go index a6c5512c8..07bb7adf4 100644 --- a/hacks/crawl/index/kustomize.go +++ b/hack/crawl/index/kustomize.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "sigs.k8s.io/kustomize/hacks/crawl/doc" + "sigs.k8s.io/kustomize/hack/crawl/doc" ) const ( diff --git a/hacks/crawl/index/kustomize_test.go b/hack/crawl/index/kustomize_test.go similarity index 100% rename from hacks/crawl/index/kustomize_test.go rename to hack/crawl/index/kustomize_test.go diff --git a/hacks/crawl/pictures/github_token.png b/hack/crawl/pictures/github_token.png similarity index 100% rename from hacks/crawl/pictures/github_token.png rename to hack/crawl/pictures/github_token.png diff --git a/hacks/crawl/pictures/sys_arch.png b/hack/crawl/pictures/sys_arch.png similarity index 100% rename from hacks/crawl/pictures/sys_arch.png rename to hack/crawl/pictures/sys_arch.png diff --git a/hacks/crawl/pictures/token_config.png b/hack/crawl/pictures/token_config.png similarity index 100% rename from hacks/crawl/pictures/token_config.png rename to hack/crawl/pictures/token_config.png diff --git a/hacks/crawl/ui/.dockerignore b/hack/crawl/ui/.dockerignore similarity index 100% rename from hacks/crawl/ui/.dockerignore rename to hack/crawl/ui/.dockerignore diff --git a/hacks/crawl/ui/.gcloudignore b/hack/crawl/ui/.gcloudignore similarity index 100% rename from hacks/crawl/ui/.gcloudignore rename to hack/crawl/ui/.gcloudignore diff --git a/hacks/crawl/ui/.gitignore b/hack/crawl/ui/.gitignore similarity index 100% rename from hacks/crawl/ui/.gitignore rename to hack/crawl/ui/.gitignore diff --git a/hacks/crawl/ui/Dockerfile b/hack/crawl/ui/Dockerfile similarity index 100% rename from hacks/crawl/ui/Dockerfile rename to hack/crawl/ui/Dockerfile diff --git a/hacks/crawl/ui/README.md b/hack/crawl/ui/README.md similarity index 100% rename from hacks/crawl/ui/README.md rename to hack/crawl/ui/README.md diff --git a/hacks/crawl/ui/angular.json b/hack/crawl/ui/angular.json similarity index 100% rename from hacks/crawl/ui/angular.json rename to hack/crawl/ui/angular.json diff --git a/hacks/crawl/ui/browserslist b/hack/crawl/ui/browserslist similarity index 100% rename from hacks/crawl/ui/browserslist rename to hack/crawl/ui/browserslist diff --git a/hacks/crawl/ui/cloudbuild.yaml b/hack/crawl/ui/cloudbuild.yaml similarity index 100% rename from hacks/crawl/ui/cloudbuild.yaml rename to hack/crawl/ui/cloudbuild.yaml diff --git a/hacks/crawl/ui/e2e/protractor.conf.js b/hack/crawl/ui/e2e/protractor.conf.js similarity index 100% rename from hacks/crawl/ui/e2e/protractor.conf.js rename to hack/crawl/ui/e2e/protractor.conf.js diff --git a/hacks/crawl/ui/e2e/src/app.e2e-spec.ts b/hack/crawl/ui/e2e/src/app.e2e-spec.ts similarity index 100% rename from hacks/crawl/ui/e2e/src/app.e2e-spec.ts rename to hack/crawl/ui/e2e/src/app.e2e-spec.ts diff --git a/hacks/crawl/ui/e2e/src/app.po.ts b/hack/crawl/ui/e2e/src/app.po.ts similarity index 100% rename from hacks/crawl/ui/e2e/src/app.po.ts rename to hack/crawl/ui/e2e/src/app.po.ts diff --git a/hacks/crawl/ui/e2e/tsconfig.json b/hack/crawl/ui/e2e/tsconfig.json similarity index 100% rename from hacks/crawl/ui/e2e/tsconfig.json rename to hack/crawl/ui/e2e/tsconfig.json diff --git a/hacks/crawl/ui/karma.conf.js b/hack/crawl/ui/karma.conf.js similarity index 100% rename from hacks/crawl/ui/karma.conf.js rename to hack/crawl/ui/karma.conf.js diff --git a/hacks/crawl/ui/nginx.conf b/hack/crawl/ui/nginx.conf similarity index 100% rename from hacks/crawl/ui/nginx.conf rename to hack/crawl/ui/nginx.conf diff --git a/hacks/crawl/ui/package-lock.json b/hack/crawl/ui/package-lock.json similarity index 100% rename from hacks/crawl/ui/package-lock.json rename to hack/crawl/ui/package-lock.json diff --git a/hacks/crawl/ui/package.json b/hack/crawl/ui/package.json similarity index 100% rename from hacks/crawl/ui/package.json rename to hack/crawl/ui/package.json diff --git a/hacks/crawl/ui/src/app/app.component.css b/hack/crawl/ui/src/app/app.component.css similarity index 100% rename from hacks/crawl/ui/src/app/app.component.css rename to hack/crawl/ui/src/app/app.component.css diff --git a/hacks/crawl/ui/src/app/app.component.html b/hack/crawl/ui/src/app/app.component.html similarity index 100% rename from hacks/crawl/ui/src/app/app.component.html rename to hack/crawl/ui/src/app/app.component.html diff --git a/hacks/crawl/ui/src/app/app.component.spec.ts b/hack/crawl/ui/src/app/app.component.spec.ts similarity index 100% rename from hacks/crawl/ui/src/app/app.component.spec.ts rename to hack/crawl/ui/src/app/app.component.spec.ts diff --git a/hacks/crawl/ui/src/app/app.component.ts b/hack/crawl/ui/src/app/app.component.ts similarity index 100% rename from hacks/crawl/ui/src/app/app.component.ts rename to hack/crawl/ui/src/app/app.component.ts diff --git a/hacks/crawl/ui/src/app/app.module.ts b/hack/crawl/ui/src/app/app.module.ts similarity index 100% rename from hacks/crawl/ui/src/app/app.module.ts rename to hack/crawl/ui/src/app/app.module.ts diff --git a/hacks/crawl/ui/src/app/documents.ts b/hack/crawl/ui/src/app/documents.ts similarity index 100% rename from hacks/crawl/ui/src/app/documents.ts rename to hack/crawl/ui/src/app/documents.ts diff --git a/hacks/crawl/ui/src/app/histogram/histogram.component.css b/hack/crawl/ui/src/app/histogram/histogram.component.css similarity index 100% rename from hacks/crawl/ui/src/app/histogram/histogram.component.css rename to hack/crawl/ui/src/app/histogram/histogram.component.css diff --git a/hacks/crawl/ui/src/app/histogram/histogram.component.html b/hack/crawl/ui/src/app/histogram/histogram.component.html similarity index 100% rename from hacks/crawl/ui/src/app/histogram/histogram.component.html rename to hack/crawl/ui/src/app/histogram/histogram.component.html diff --git a/hacks/crawl/ui/src/app/histogram/histogram.component.spec.ts b/hack/crawl/ui/src/app/histogram/histogram.component.spec.ts similarity index 100% rename from hacks/crawl/ui/src/app/histogram/histogram.component.spec.ts rename to hack/crawl/ui/src/app/histogram/histogram.component.spec.ts diff --git a/hacks/crawl/ui/src/app/histogram/histogram.component.ts b/hack/crawl/ui/src/app/histogram/histogram.component.ts similarity index 100% rename from hacks/crawl/ui/src/app/histogram/histogram.component.ts rename to hack/crawl/ui/src/app/histogram/histogram.component.ts diff --git a/hacks/crawl/ui/src/app/search/search.component.css b/hack/crawl/ui/src/app/search/search.component.css similarity index 100% rename from hacks/crawl/ui/src/app/search/search.component.css rename to hack/crawl/ui/src/app/search/search.component.css diff --git a/hacks/crawl/ui/src/app/search/search.component.html b/hack/crawl/ui/src/app/search/search.component.html similarity index 100% rename from hacks/crawl/ui/src/app/search/search.component.html rename to hack/crawl/ui/src/app/search/search.component.html diff --git a/hacks/crawl/ui/src/app/search/search.component.spec.ts b/hack/crawl/ui/src/app/search/search.component.spec.ts similarity index 100% rename from hacks/crawl/ui/src/app/search/search.component.spec.ts rename to hack/crawl/ui/src/app/search/search.component.spec.ts diff --git a/hacks/crawl/ui/src/app/search/search.component.ts b/hack/crawl/ui/src/app/search/search.component.ts similarity index 100% rename from hacks/crawl/ui/src/app/search/search.component.ts rename to hack/crawl/ui/src/app/search/search.component.ts diff --git a/hacks/crawl/ui/src/app/search/search.service.ts b/hack/crawl/ui/src/app/search/search.service.ts similarity index 100% rename from hacks/crawl/ui/src/app/search/search.service.ts rename to hack/crawl/ui/src/app/search/search.service.ts diff --git a/hacks/crawl/ui/src/app/timeseries/timeseries.component.css b/hack/crawl/ui/src/app/timeseries/timeseries.component.css similarity index 100% rename from hacks/crawl/ui/src/app/timeseries/timeseries.component.css rename to hack/crawl/ui/src/app/timeseries/timeseries.component.css diff --git a/hacks/crawl/ui/src/app/timeseries/timeseries.component.html b/hack/crawl/ui/src/app/timeseries/timeseries.component.html similarity index 100% rename from hacks/crawl/ui/src/app/timeseries/timeseries.component.html rename to hack/crawl/ui/src/app/timeseries/timeseries.component.html diff --git a/hacks/crawl/ui/src/app/timeseries/timeseries.component.spec.ts b/hack/crawl/ui/src/app/timeseries/timeseries.component.spec.ts similarity index 100% rename from hacks/crawl/ui/src/app/timeseries/timeseries.component.spec.ts rename to hack/crawl/ui/src/app/timeseries/timeseries.component.spec.ts diff --git a/hacks/crawl/ui/src/app/timeseries/timeseries.component.ts b/hack/crawl/ui/src/app/timeseries/timeseries.component.ts similarity index 100% rename from hacks/crawl/ui/src/app/timeseries/timeseries.component.ts rename to hack/crawl/ui/src/app/timeseries/timeseries.component.ts diff --git a/hacks/crawl/ui/src/assets/.gitkeep b/hack/crawl/ui/src/assets/.gitkeep similarity index 100% rename from hacks/crawl/ui/src/assets/.gitkeep rename to hack/crawl/ui/src/assets/.gitkeep diff --git a/hacks/crawl/ui/src/environments/environment.prod.ts b/hack/crawl/ui/src/environments/environment.prod.ts similarity index 100% rename from hacks/crawl/ui/src/environments/environment.prod.ts rename to hack/crawl/ui/src/environments/environment.prod.ts diff --git a/hacks/crawl/ui/src/environments/environment.ts b/hack/crawl/ui/src/environments/environment.ts similarity index 100% rename from hacks/crawl/ui/src/environments/environment.ts rename to hack/crawl/ui/src/environments/environment.ts diff --git a/hacks/crawl/ui/src/favicon.ico b/hack/crawl/ui/src/favicon.ico similarity index 100% rename from hacks/crawl/ui/src/favicon.ico rename to hack/crawl/ui/src/favicon.ico diff --git a/hacks/crawl/ui/src/index.html b/hack/crawl/ui/src/index.html similarity index 100% rename from hacks/crawl/ui/src/index.html rename to hack/crawl/ui/src/index.html diff --git a/hacks/crawl/ui/src/main.ts b/hack/crawl/ui/src/main.ts similarity index 100% rename from hacks/crawl/ui/src/main.ts rename to hack/crawl/ui/src/main.ts diff --git a/hacks/crawl/ui/src/polyfills.ts b/hack/crawl/ui/src/polyfills.ts similarity index 100% rename from hacks/crawl/ui/src/polyfills.ts rename to hack/crawl/ui/src/polyfills.ts diff --git a/hacks/crawl/ui/src/styles.css b/hack/crawl/ui/src/styles.css similarity index 100% rename from hacks/crawl/ui/src/styles.css rename to hack/crawl/ui/src/styles.css diff --git a/hacks/crawl/ui/src/test.ts b/hack/crawl/ui/src/test.ts similarity index 100% rename from hacks/crawl/ui/src/test.ts rename to hack/crawl/ui/src/test.ts diff --git a/hacks/crawl/ui/tsconfig.app.json b/hack/crawl/ui/tsconfig.app.json similarity index 100% rename from hacks/crawl/ui/tsconfig.app.json rename to hack/crawl/ui/tsconfig.app.json diff --git a/hacks/crawl/ui/tsconfig.json b/hack/crawl/ui/tsconfig.json similarity index 100% rename from hacks/crawl/ui/tsconfig.json rename to hack/crawl/ui/tsconfig.json diff --git a/hacks/crawl/ui/tsconfig.spec.json b/hack/crawl/ui/tsconfig.spec.json similarity index 100% rename from hacks/crawl/ui/tsconfig.spec.json rename to hack/crawl/ui/tsconfig.spec.json diff --git a/hacks/crawl/ui/tslint.json b/hack/crawl/ui/tslint.json similarity index 100% rename from hacks/crawl/ui/tslint.json rename to hack/crawl/ui/tslint.json diff --git a/hacks/doGoMod.sh b/hack/doGoMod.sh similarity index 71% rename from hacks/doGoMod.sh rename to hack/doGoMod.sh index 9c8510583..4a79f40c9 100755 --- a/hacks/doGoMod.sh +++ b/hack/doGoMod.sh @@ -1,6 +1,6 @@ # Usage: From repo root: -# ./hacks/doGoMod.sh tidy -# ./hacks/doGoMod.sh verify +# ./hack/doGoMod.sh tidy +# ./hack/doGoMod.sh verify operation=$1 for f in $(find ./ -name 'go.mod'); do diff --git a/hacks/imports.sh b/hack/imports.sh similarity index 100% rename from hacks/imports.sh rename to hack/imports.sh