-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use the last part of the path when trying to find matching process. (#903) * Use the last part of the path when trying to find matching process. The process was comparing the base path minus the extension, which was blocking types with a `.` in them from ever matching. Fixes #895 Signed-off-by: Jesse Brown <jabrown85@gmail.com> * fixup! Use the last part of the path when trying to find matching process. Signed-off-by: Jesse Brown <jabrown85@gmail.com> * fixup! Use the last part of the path when trying to find matching process. Signed-off-by: Jesse Brown <jabrown85@gmail.com> * fixup! Use the last part of the path when trying to find matching process. Signed-off-by: Jesse Brown <jabrown85@gmail.com> * fixup! Use the last part of the path when trying to find matching process. Signed-off-by: Jesse Brown <jabrown85@gmail.com> * fixup! Use the last part of the path when trying to find matching process. Signed-off-by: Jesse Brown <jabrown85@gmail.com> * fixup! Use the last part of the path when trying to find matching process. Signed-off-by: Jesse Brown <jabrown85@gmail.com> * Upgrade go to 1.18 (#907) * Use go 1.18 in CI * Bump deps (except toml) Signed-off-by: Natalie Arellano <narellano@vmware.com> * Test path lookup (#909) Signed-off-by: Natalie Arellano <narellano@vmware.com> Signed-off-by: Natalie Arellano <narellano@vmware.com> * Revert "Merge branch 'release/0.14.2' into jab/fix-process-type-parsing" This reverts commit 6f56a31, reversing changes made to e544937. Signed-off-by: Jesse Brown <jabrown85@gmail.com> Signed-off-by: Natalie Arellano <narellano@vmware.com> Co-authored-by: Natalie Arellano <narellano@vmware.com> * Bump imgutil Signed-off-by: Natalie Arellano <narellano@vmware.com> Signed-off-by: Jesse Brown <jabrown85@gmail.com> Signed-off-by: Natalie Arellano <narellano@vmware.com> Co-authored-by: Jesse Brown <jabrown85@gmail.com>
- Loading branch information
1 parent
df06171
commit 8241b13
Showing
11 changed files
with
70 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
acceptance/testdata/launcher/linux/container/cnb/process/process.with.period
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../lifecycle/launcher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
acceptance/testdata/launcher/windows/container/cnb/process/process.with.period.exe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../lifecycle/launcher.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package launch | ||
|
||
import "path/filepath" | ||
|
||
const ( | ||
EnvAppDir = "CNB_APP_DIR" | ||
EnvLayersDir = "CNB_LAYERS_DIR" | ||
EnvNoColor = "CNB_NO_COLOR" // defaults to false | ||
EnvPlatformAPI = "CNB_PLATFORM_API" | ||
EnvProcessType = "CNB_PROCESS_TYPE" | ||
|
||
DefaultPlatformAPI = "0.3" | ||
DefaultProcessType = "web" | ||
|
||
DefaultExecExt = execExt | ||
) | ||
|
||
var ( | ||
DefaultAppDir = filepath.Join(rootDir, "workspace") | ||
DefaultLayersDir = filepath.Join(rootDir, "layers") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//go:build linux || darwin | ||
// +build linux darwin | ||
|
||
package launch | ||
|
||
const ( | ||
execExt = "" | ||
rootDir = "/" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package launch | ||
|
||
const ( | ||
execExt = ".exe" | ||
rootDir = `c:\` | ||
) |