File tree 1 file changed +3
-1
lines changed
internal/pkg/agent/application/paths
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 2
2
// or more contributor license agreements. Licensed under the Elastic License;
3
3
// you may not use this file except in compliance with the Elastic License.
4
4
5
+ // This file encapsulates the common paths that need to account for development installation.
5
6
package paths
6
7
7
8
import "path/filepath"
@@ -12,7 +13,7 @@ const DevelopmentInstallDirName string = "DevelopmentAgent"
12
13
13
14
var isDevelopmentMode bool
14
15
15
- // SetIsDevelopmentMode sets whether the agent is installed in development mode or not .
16
+ // SetIsDevelopmentMode sets whether the agent is currently in or is being installed in development mode.
16
17
func SetIsDevelopmentMode (developmentMode bool ) {
17
18
isDevelopmentMode = developmentMode
18
19
}
@@ -57,6 +58,7 @@ func ShellWrapperPath() string {
57
58
}
58
59
59
60
// ControlSocketRunSymlink returns the shell wrapper path accounting for development mode.
61
+ // Does not auto detect development mode because it is used outside of agent itself in the testing framework.
60
62
func ControlSocketRunSymlink (isDevelopmentMode bool ) string {
61
63
if isDevelopmentMode {
62
64
return controlSocketRunSymlinkDevelopmentMode
You can’t perform that action at this time.
0 commit comments