Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ vendor/
go.work

.vscode/*
!.vscode/launch.json
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't have to add this special exclusion but use git add -f to add the file and the result will be expected :)

Copy link
Contributor

@tisonkun tisonkun Oct 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But then the index only exists in the git database so other tools may not work XD.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But then the index only exists in the git database so other tools may not work XD.

I did not get this. Do you mean the current change is correct, but a more elegant way is to use git add -f? @tisonkun

.idea

# Local History for Visual Studio Code
Expand Down
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "envd up",
"type": "go",
"request": "launch",
"mode": "exec",
"program": "${workspaceFolder}/debug-bin/envd",
"cwd": "directory containing build.envd",
"args": [
"up"
]
}
]
}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ generate: mockgen-install ## Generate mocks
# It is used by vscode to attach into the process.
debug-local:
@for target in $(TARGETS); do \
CGO_ENABLED=$(CGO_ENABLED) go build -trimpath \
CGO_ENABLED=$(CGO_ENABLED) go build \
-v -o $(DEBUG_DIR)/$${target} \
-gcflags='all=-N -l' \
$(CMD_DIR)/$${target}; \
Expand Down