Update import path of fsnotify
authorAnthony Fok <foka@debian.org>
Wed, 20 Apr 2016 14:28:26 +0000 (22:28 +0800)
committerAnthony Fok <foka@debian.org>
Wed, 20 Apr 2016 14:28:26 +0000 (22:28 +0800)
Rename "gopkg.in/fsnotify.v1" to "github.com/fsnotify/fsnotify"
per upstream recommendation.

See https://github.com/fsnotify/fsnotify/issues/108 for rationale.

Dockerfile
commands/hugo.go
hugolib/site.go
watcher/batcher.go

index 9481b8fb0000079c46f87925b7c5dec4e50e17f1..bcd0863c1d6b3d1acf59d64c794e999f9b8ccbec 100644 (file)
@@ -34,7 +34,7 @@ RUN go get github.com/stretchr/testify/assert \
        && go get golang.org/x/text/unicode/norm \
        && go get github.com/yosssi/ace \
        && go get github.com/spf13/nitro \
-       && go get gopkg.in/fsnotify.v1
+       && go get github.com/fsnotify/fsnotify
 
 COPY . /go/src/github.com/spf13/hugo
 RUN go get -d -v github.com/spf13/hugo
index ec77047a23d29cfee11d6c425ec3f3657461852b..a10ae9c43436330d0b68a020932699e172b085af 100644 (file)
@@ -33,6 +33,7 @@ import (
 
        "regexp"
 
+       "github.com/fsnotify/fsnotify"
        "github.com/spf13/afero"
        "github.com/spf13/cobra"
        "github.com/spf13/fsync"
@@ -44,7 +45,6 @@ import (
        jww "github.com/spf13/jwalterweatherman"
        "github.com/spf13/nitro"
        "github.com/spf13/viper"
-       "gopkg.in/fsnotify.v1"
 )
 
 // MainSite represents the Hugo site to build. This variable is exported as it
index 4cb65b7fc6f3ed5f238f541f188e93c147472d1c..14643fe0aff2574057ef336d5b784b1d9e5c6c25 100644 (file)
@@ -32,6 +32,7 @@ import (
        "path"
 
        "github.com/bep/inflect"
+       "github.com/fsnotify/fsnotify"
        "github.com/spf13/afero"
        "github.com/spf13/cast"
        bp "github.com/spf13/hugo/bufferpool"
@@ -45,7 +46,6 @@ import (
        jww "github.com/spf13/jwalterweatherman"
        "github.com/spf13/nitro"
        "github.com/spf13/viper"
-       "gopkg.in/fsnotify.v1"
 )
 
 var _ = transform.AbsURL
index 470863300156e5a2274cb89161b9a69a3c4e931f..0b4083e81f763ef8302d438d2ab6facd1a6855c9 100644 (file)
@@ -16,7 +16,7 @@ package watcher
 import (
        "time"
 
-       "gopkg.in/fsnotify.v1"
+       "github.com/fsnotify/fsnotify"
 )
 
 type Batcher struct {