Use go module as dependency tool instead of glide
[src/xds/xds-agent.git] / lib / agent / apiv1-exec.go
index ace2cdc..e711a19 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017 "IoT.bzh"
+ * Copyright (C) 2017-2018 "IoT.bzh"
  * Author Sebastien Douheret <sebastien@iot.bzh>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -20,11 +20,11 @@ package agent
 import (
        "net/http"
 
+       "gerrit.automotivelinux.org/gerrit/src/xds/xds-agent.git/lib/xaapiv1"
+       common "gerrit.automotivelinux.org/gerrit/src/xds/xds-common.git"
+       "gerrit.automotivelinux.org/gerrit/src/xds/xds-server.git/lib/xsapiv1"
        "github.com/franciscocpg/reflectme"
        "github.com/gin-gonic/gin"
-       "github.com/iotbzh/xds-agent/lib/xaapiv1"
-       common "github.com/iotbzh/xds-common/golib"
-       "github.com/iotbzh/xds-server/lib/xsapiv1"
        uuid "github.com/satori/go.uuid"
 )
 
@@ -181,17 +181,18 @@ func (s *APIService) execCmd(c *gin.Context) {
        // Forward back command to right server
        res := xsapiv1.ExecResult{}
        xsArgs := &xsapiv1.ExecArgs{
-               ID:              args.ID,
-               SdkID:           args.SdkID,
-               CmdID:           args.CmdID,
-               Cmd:             args.Cmd,
-               Args:            args.Args,
-               Env:             args.Env,
-               RPath:           args.RPath,
-               TTY:             args.TTY,
-               TTYGdbserverFix: args.TTYGdbserverFix,
-               ExitImmediate:   args.ExitImmediate,
-               CmdTimeout:      args.CmdTimeout,
+               ID:               args.ID,
+               SdkID:            args.SdkID,
+               CmdID:            args.CmdID,
+               Cmd:              args.Cmd,
+               Args:             args.Args,
+               Env:              args.Env,
+               RPath:            args.RPath,
+               TTY:              args.TTY,
+               TTYGdbserverFix:  args.TTYGdbserverFix,
+               LdLibPathNoReset: args.LdLibPathNoReset,
+               ExitImmediate:    args.ExitImmediate,
+               CmdTimeout:       args.CmdTimeout,
        }
        if err := svr.CommandExec(xsArgs, &res); err != nil {
                common.APIError(c, err.Error())