Update GOPATH in VSCode project (now in gerrit) 65/14565/1
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Wed, 20 Jun 2018 21:31:49 +0000 (23:31 +0200)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Wed, 20 Jun 2018 21:44:19 +0000 (23:44 +0200)
xds-gdb sources was previously in github (github.com/iotbzh/xds-gdb) and
then sources have been migrated into AGL gerrit
(gerrit.automotivelinux.org/gerrit/src/xds/xds-gdb)
So GOPATH must be change accordingly.

Change-Id: Ibb62e63fe499d054b7deb171222b79e53d9f899e
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
.vscode/launch.json
.vscode/settings.json

index 6e0c820..70f4f8e 100644 (file)
@@ -9,7 +9,7 @@
             "mode": "debug",
             "program": "${workspaceRoot}",
             "env": {
-                "GOPATH": "${workspaceRoot}/../../../..:${env:GOPATH}",
+                "GOPATH": "${workspaceRoot}/../../../../../..:${env:GOPATH}",
                 "XDS_LOGLEVEL": "debug"
             },
             "args": ["-tt", "--help", "--version"],
@@ -22,7 +22,7 @@
             "mode": "debug",
             "program": "${workspaceRoot}",
             "env": {
-                "GOPATH": "${workspaceRoot}/../../../..:${env:GOPATH}",
+                "GOPATH": "${workspaceRoot}/../../../../../..:${env:GOPATH}",
                 "XDS_LOGLEVEL": "debug"
             },
             "args": ["-x", "${workspaceRoot}/__config/gdb-on-target.ini", "-nx"],
@@ -35,7 +35,7 @@
             "mode": "debug",
             "program": "${workspaceRoot}",
             "env": {
-                "GOPATH": "${workspaceRoot}/../../../..:${env:GOPATH}"
+                "GOPATH": "${workspaceRoot}/../../../../../..:${env:GOPATH}",
             },
             "args": ["-tty", "/dev/pts27", "-nx", "-x", "${workspaceRoot}/__config/gdb-on-m3ulcb_debug_pi.ini"],
             "showLog": false
@@ -47,7 +47,7 @@
             "mode": "debug",
             "program": "${workspaceRoot}",
             "env": {
-                "GOPATH": "${workspaceRoot}/../../../..:${env:GOPATH}",
+                "GOPATH": "${workspaceRoot}/../../../../../..:${env:GOPATH}",
                 "XDS_LOGLEVEL": "debug"
             },
             "args": ["-x", "${workspaceRoot}/__config/gdb-on-localhost_debug_pi.ini"],
index 16b3a00..8c1f563 100644 (file)
@@ -1,5 +1,8 @@
 // Place your settings in this file to overwrite default and user settings.
 {
+    // Specify GOPATH here to override the one that is set as environment variable. The inferred GOPATH from workspace root overrides this, if go.inferGopath is set to true.
+    "go.gopath": "${workspaceRoot}/../../../../../..",
+
     // Configure glob patterns for excluding files and folders.
     "files.exclude": {
         "**/.tmp": true,