Skip to content

Commit fcb9682

Browse files
ashmckenzieGitLab
authored and
GitLab
committed
Merge branch 'ashmckenzie/relocate-bin-install' into 'main'
Move bin/install to support/make_necessary_dirs See merge request https://gitlab.com/gitlab-org/gitlab-shell/-/merge_requests/799 Merged-by: Ash McKenzie <[email protected]> Reviewed-by: Patrick Bajao <[email protected]>
2 parents cd6941c + 1e3a157 commit fcb9682

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77
.gitlab_shell_secret
88
.idea
99
/*.log*
10-
/bin/check
11-
/bin/gitlab-shell
12-
/bin/gitlab-shell-authorized-keys-check
13-
/bin/gitlab-shell-authorized-principals-check
14-
/bin/gitlab-sshd
10+
/bin/*
1511
/gl-code-quality-report.json
1612
/go_build
1713
/support/bin/golangci-*

Makefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,18 @@ ${GOLANGCI_LINT_FILE}:
9696

9797
setup: make_necessary_dirs bin/gitlab-shell
9898

99-
make_necessary_dirs: _script_install
100-
_script_install:
101-
bin/install
99+
make_necessary_dirs:
100+
support/make_necessary_dirs
102101

103102
compile: bin/gitlab-shell bin/gitlab-sshd
104103

105-
bin/gitlab-shell: $(GO_SOURCES)
104+
bin:
105+
mkdir -p bin
106+
107+
bin/gitlab-shell: bin $(GO_SOURCES)
106108
go build $(GOBUILD_FLAGS) -o $(CURDIR)/bin ./cmd/...
107109

108-
bin/gitlab-sshd: $(GO_SOURCES)
110+
bin/gitlab-sshd: bin $(GO_SOURCES)
109111
go build $(GOBUILD_FLAGS) -o $(CURDIR)/bin/gitlab-sshd ./cmd/gitlab-sshd
110112

111113
check:

bin/install renamed to support/make_necessary_dirs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env ruby
22

33
# Load ROOT_PATH and access the minimum necessary config file
4-
require_relative '../support/gitlab_config'
4+
require_relative 'gitlab_config'
55

66
config = GitlabConfig.new
77
key_dir = File.dirname("#{config.auth_file}")

0 commit comments

Comments
 (0)