David Farrell's profile photoAlex Cooper's profile photoYaniv Kriachko's profile photoDennis van Velzen's profile photo
[edit] Regarding failed installs on OSX:

 I confirmed the problem is related to the XCode portion of the "postinstall" script (copied below).

To fix the problem, temporarily rename the Xcode folder before launching the install pkg:

$ cd "/Library/Application Support/Developer/Shared/"
$ sudo mv Xcode Xcode.off
$ # Install go1.1.2
$ sudo mv Xcode.off Xcode

If you want you can manually copy the misc xcode files into place:
$ cd Xcode
$ sudo mkdir Specifications
$ cd Specifications
# If you have XCode v3 installed, use /3/ instead
# To check your XCode version try:
# /usr/bin/xcodebuild -version
$ sudo cp -R $GOROOT/misc/xcode/4/* .

NOTE I also ran the postinstall script manually and it did not fail, so I'm not sure why it fails during install.

--- postinstall script ---


echo "Fixing permissions"
find . -exec chmod ugo+r \{\} \;
find bin -exec chmod ugo+rx \{\} \;
find . -type d -exec chmod ugo+rx \{\} \;
chmod o-w .

echo "Installing miscellaneous files:"
XCODE_SHARED_DIR="/Library/Application Support/Developer/Shared/Xcode"
if [ -d "$XCODE_SHARED_DIR" ]; then
    # Create the XCODE_MISC_DIR if it doesn't exist already
    mkdir -p "$XCODE_MISC_DIR"

    version=`/usr/bin/xcodebuild -version | sed -n -E 's/^Xcode ([0-9]+)\..*$/\1/p'`
        # Since command line tools are optional with Xcode 4, a failure of the
    # xcodebuild -version command is interpreted as meaning Xcode 4 is the
    # version used.
    if [[ $? -ne 0 ]]; then

        echo "  Xcode $version"
    cp -R $GOROOT/misc/xcode/$version/* "$XCODE_MISC_DIR"
Thanks :) I'm new to this.. so it's sounds very interesting :)

just started to study it :)
Nice... just compiled some programs using the new version... no issues so far
Add a comment...