makedeb


golang-go 2:1.23.0-1


The Go programming language

Viewing /preinst.

View raw.

Click here to go back to the Git tree for golang-go.

#!/usr/bin/env bash
set -e

# 'golang-go' from the Debian and Ubuntu repositories depends on 'golang-src',
# which has '/usr/lib/go' set up as a symlink. We have '/usr/lib/go' set up as
# a folder in our package, so dpkg won't unpack our folder when 'golang-src' is
# installed.
#
# See Debian policy 6.6, number 4 for details.
if [[ -L '/usr/lib/go' ]]; then
    rm '/usr/lib/go'
fi

# vim: set syntax=bash ts=4 sw=4 expandtab: