Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
Removing debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
tro3 committed Apr 16, 2017
1 parent 58b8d41 commit 1050f75
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions context_test.go
Expand Up @@ -5,7 +5,6 @@
package dep

import (
"fmt"
"os"
"path/filepath"
"runtime"
Expand Down Expand Up @@ -382,16 +381,10 @@ func TestResolveProjectRoot(t *testing.T) {
symlinkedPath := filepath.Join(tg.Path("."), "sym", "symlink")
symlinkedInGoPath := filepath.Join(ctx.GOPATH, "src/sym/path")
symlinkedInOtherGoPath := filepath.Join(tg.Path("."), "sym", "symtwo")
os.Symlink(realPath, symlinkedPath+".lnk")
os.Symlink(realPath, symlinkedPath)
os.Symlink(realPath, symlinkedInGoPath)
os.Symlink(realPathTwo, symlinkedInOtherGoPath)

fmt.Println(realPath)
fmt.Println(realPathTwo)
fmt.Println(symlinkedPath)
fmt.Println(symlinkedInGoPath)
fmt.Println(symlinkedInOtherGoPath)

// Real path should be returned, no symlinks to deal with
p, err := ctx.resolveProjectRoot(realPath)
if err != nil {
Expand Down

0 comments on commit 1050f75

Please sign in to comment.