Skip to content

Commit 4586238

Browse files
arschlesAaron Schlesinger
authored andcommitted
fix(build.go): comment out unused variables
I’m not sure where these vars need to be used yet, so leaving them commented
1 parent cb4dd09 commit 4586238

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

pkg/gitreceive/build.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ func build(conf *Config, etcdClient *etcd.Client) error {
110110
// GIT_SHA=$3
111111
// SHORT_SHA=${GIT_SHA:0:8}
112112
// APP_NAME="${REPO%.*}"
113-
user := conf.Username
114113
repo := conf.Repository
115114
gitSha := conf.SHA
116115
if len(gitSha) <= shortShaIdx {
@@ -131,7 +130,7 @@ func build(conf *Config, etcdClient *etcd.Client) error {
131130
}
132131
repoDir := filepath.Join(rootDir, repo)
133132
buildDir := filepath.Join(repoDir, "build")
134-
cacheDir := filepath.Join(repoDir, "cache")
133+
// cacheDir := filepath.Join(repoDir, "cache")
135134
//
136135
// # define image names
137136
// SLUG_NAME="$APP_NAME:git-$SHORT_SHA"
@@ -142,7 +141,7 @@ func build(conf *Config, etcdClient *etcd.Client) error {
142141
// # create temporary directory inside the build dir for this push
143142
// TMP_DIR=$(mktemp -d -p $BUILD_DIR)
144143
slugName := fmt.Sprintf("%s:git-%s", appName, shortSha)
145-
metaName := strings.Replace(slugName, ":", "-", -1)
144+
// metaName := strings.Replace(slugName, ":", "-", -1)
146145
tmpImage := fmt.Sprintf("%s:%s/%s", conf.RegistryHost, conf.RegistryPort, conf.ImageName)
147146
if err := os.MkdirAll(buildDir, os.ModeDir); err != nil {
148147
return fmt.Errorf("making the build directory %s (%s)", buildDir, err)

0 commit comments

Comments
 (0)