From 818e2abec22ff57c0f5d43311ad561a50b993651 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Fri, 15 Oct 2021 14:02:58 +0530 Subject: [PATCH] Run go fmt after asset generation (#469) This was creating modified files if someone has a gofmt on the repo. --- Makefile | 1 + deployment/terraform/assets/bindata.go | 12 ++++++------ loadtest/control/bindata.go | 8 ++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index aebc64f28..059ffd721 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,7 @@ build-windows: assets: go get -modfile=go.tools.mod github.com/kevinburke/go-bindata/go-bindata/... go generate ./... + go fmt ./... build: assets build-linux build-windows build-osx diff --git a/deployment/terraform/assets/bindata.go b/deployment/terraform/assets/bindata.go index 2b363ada7..0d96c3ef0 100644 --- a/deployment/terraform/assets/bindata.go +++ b/deployment/terraform/assets/bindata.go @@ -359,13 +359,13 @@ type bintree struct { } var _bintree = &bintree{nil, map[string]*bintree{ - "cluster.tf": {clusterTf, map[string]*bintree{}}, - "dashboard.yaml": {dashboardYaml, map[string]*bintree{}}, - "dashboard_data.json": {dashboard_dataJson, map[string]*bintree{}}, - "datasource.yaml": {datasourceYaml, map[string]*bintree{}}, + "cluster.tf": {clusterTf, map[string]*bintree{}}, + "dashboard.yaml": {dashboardYaml, map[string]*bintree{}}, + "dashboard_data.json": {dashboard_dataJson, map[string]*bintree{}}, + "datasource.yaml": {datasourceYaml, map[string]*bintree{}}, "es_dashboard_data.json": {es_dashboard_dataJson, map[string]*bintree{}}, - "outputs.tf": {outputsTf, map[string]*bintree{}}, - "variables.tf": {variablesTf, map[string]*bintree{}}, + "outputs.tf": {outputsTf, map[string]*bintree{}}, + "variables.tf": {variablesTf, map[string]*bintree{}}, }} // RestoreAsset restores an asset under the given directory. diff --git a/loadtest/control/bindata.go b/loadtest/control/bindata.go index a5c64511c..e7ea5e791 100644 --- a/loadtest/control/bindata.go +++ b/loadtest/control/bindata.go @@ -316,10 +316,10 @@ type bintree struct { var _bintree = &bintree{nil, map[string]*bintree{ "test_profile.png": {test_profilePng, map[string]*bintree{}}, - "test_text.txt": {test_textTxt, map[string]*bintree{}}, - "test_upload.jpg": {test_uploadJpg, map[string]*bintree{}}, - "test_upload.mp4": {test_uploadMp4, map[string]*bintree{}}, - "test_upload.png": {test_uploadPng, map[string]*bintree{}}, + "test_text.txt": {test_textTxt, map[string]*bintree{}}, + "test_upload.jpg": {test_uploadJpg, map[string]*bintree{}}, + "test_upload.mp4": {test_uploadMp4, map[string]*bintree{}}, + "test_upload.png": {test_uploadPng, map[string]*bintree{}}, }} // RestoreAsset restores an asset under the given directory.