File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ type PayloadSubmission struct {
3838// from the x-api, but it is also used when restoring earlier iterations.
3939func Fetch (url string ) ([]* Problem , error ) {
4040 req , err := http .NewRequest ("GET" , url , nil )
41+ fmt .Println (url )
4142 if err != nil {
4243 return nil , err
4344 }
Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ func Submit(ctx *cli.Context) {
4141 log .Fatal (err )
4242 }
4343
44+ dir , err := filepath .EvalSymlinks (c .Dir )
45+ if err != nil {
46+ log .Fatal (err )
47+ }
48+
4449 code , err := ioutil .ReadFile (path )
4550 if err != nil {
4651 log .Fatalf ("Cannot read the contents of %s - %s\n " , filename , err )
@@ -51,7 +56,7 @@ func Submit(ctx *cli.Context) {
5156 iteration := & api.Iteration {
5257 Key : c .APIKey ,
5358 Code : string (code ),
54- Path : path [len (c . Dir ):],
59+ Path : path [len (dir ):],
5560 Dir : c .Dir ,
5661 }
5762
You can’t perform that action at this time.
0 commit comments