Skip to content

src/pkg/deps.bash breaks build #306

@gopherbot

Description

@gopherbot

by codedr:

What steps will reproduce the problem?
1. all.bash
2.
3.

What is the expected output? What do you see instead?
Make.deps:1: *** missing separator.  Stop.

What is your $GOOS?  $GOARCH?


Which revision are you using?  (hg identify)
2f32e74ab96e+ tip

Please provide any additional information below.

in deps.bash, 'cd' produces output of the changed directory.
send the output of 'cd' to dev/null

diff -r 2f32e74ab96e src/pkg/deps.bash
--- a/src/pkg/deps.bash Sat Nov 21 15:53:03 2009 -0800
+++ b/src/pkg/deps.bash Sun Nov 22 13:50:44 2009 -0600
@@ -16,7 +16,7 @@
 dirpat=$(echo $dirs | sed 's/ /|/g; s/.*/^(&)$/')
 
 for dir in $dirs; do (
-       cd $dir || exit 1
+       cd $dir > /dev/null 2>&1 || exit 1
 
        sources=$(sed -n 's/\.go\\/.go/p' Makefile)
        sources=$(ls $sources 2> /dev/null)  # remove .s, .c, etc.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions