Use proper github path

This commit is contained in:
Matej Kramny 2016-03-16 21:49:43 +00:00
parent 119bca059f
commit 252b4fbe50
9 changed files with 29 additions and 21 deletions

View File

@ -2,7 +2,8 @@ package database
import ( import (
"database/sql" "database/sql"
"github.com/castawaylabs/semaphore/util"
"github.com/ansible-semaphore/semaphore/util"
_ "github.com/go-sql-driver/mysql" // imports mysql driver _ "github.com/go-sql-driver/mysql" // imports mysql driver
"gopkg.in/gorp.v1" "gopkg.in/gorp.v1"
) )

View File

@ -2,9 +2,10 @@ package database
import ( import (
"fmt" "fmt"
"github.com/castawaylabs/semaphore/util"
"gopkg.in/redis.v3"
"time" "time"
"github.com/ansible-semaphore/semaphore/util"
"gopkg.in/redis.v3"
) )
// Redis pool // Redis pool

View File

@ -2,11 +2,12 @@ package main
import ( import (
"fmt" "fmt"
"github.com/ansible-semaphore/semaphore/database"
"github.com/ansible-semaphore/semaphore/migration"
"github.com/ansible-semaphore/semaphore/routes"
"github.com/ansible-semaphore/semaphore/util"
"github.com/bugsnag/bugsnag-go" "github.com/bugsnag/bugsnag-go"
"github.com/castawaylabs/semaphore/database"
"github.com/castawaylabs/semaphore/migration"
"github.com/castawaylabs/semaphore/routes"
"github.com/castawaylabs/semaphore/util"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@ -2,10 +2,11 @@ package migration
import ( import (
"fmt" "fmt"
"github.com/castawaylabs/semaphore/database"
"github.com/castawaylabs/semaphore/util"
"github.com/go-sql-driver/mysql"
"time" "time"
"github.com/ansible-semaphore/semaphore/database"
"github.com/ansible-semaphore/semaphore/util"
"github.com/go-sql-driver/mysql"
) )
func (version *DBVersion) CheckExists() (bool, error) { func (version *DBVersion) CheckExists() (bool, error) {

View File

@ -2,9 +2,10 @@ package migration
import ( import (
"fmt" "fmt"
"github.com/castawaylabs/semaphore/util"
"strings" "strings"
"time" "time"
"github.com/ansible-semaphore/semaphore/util"
) )
type DBVersion struct { type DBVersion struct {

View File

@ -25,7 +25,7 @@
- bower - bower
# source is copied using ansible. # source is copied using ansible.
#- git: repo=https://github.com/CastawayLabs/semaphore dest={{ homedir }} #- git: repo=https://github.com/ansible-semaphore/semaphore dest={{ homedir }}
- file: src=/usr/bin/nodejs dest=/usr/bin/node state=link - file: src=/usr/bin/nodejs dest=/usr/bin/node state=link
- shell: bower install --allow-root && npm install > {{ homedir }}/somelog.txt - shell: bower install --allow-root && npm install > {{ homedir }}/somelog.txt
args: args:

View File

@ -4,15 +4,16 @@ import (
"crypto/rand" "crypto/rand"
"encoding/base64" "encoding/base64"
"fmt" "fmt"
"github.com/castawaylabs/semaphore/database"
"github.com/castawaylabs/semaphore/models"
"github.com/castawaylabs/semaphore/util"
"github.com/gin-gonic/gin"
"gopkg.in/redis.v3"
"io" "io"
"net/http" "net/http"
"net/url" "net/url"
"time" "time"
"github.com/ansible-semaphore/semaphore/database"
"github.com/ansible-semaphore/semaphore/models"
"github.com/ansible-semaphore/semaphore/util"
"github.com/gin-gonic/gin"
"gopkg.in/redis.v3"
) )
func resetSessionExpiry(sessionID string) { func resetSessionExpiry(sessionID string) {

View File

@ -1,9 +1,10 @@
package routes package routes
import ( import (
"github.com/castawaylabs/semaphore/util"
"github.com/gin-gonic/gin"
"strings" "strings"
"github.com/ansible-semaphore/semaphore/util"
"github.com/gin-gonic/gin"
) )
// Declare all routes // Declare all routes

View File

@ -4,10 +4,11 @@ import (
"encoding/json" "encoding/json"
"flag" "flag"
"fmt" "fmt"
"os"
"github.com/bugsnag/bugsnag-go" "github.com/bugsnag/bugsnag-go"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/mattbaird/gochimp" "github.com/mattbaird/gochimp"
"os"
) )
var mandrillAPI *gochimp.MandrillAPI var mandrillAPI *gochimp.MandrillAPI
@ -93,7 +94,7 @@ func init() {
ReleaseStage: stage, ReleaseStage: stage,
NotifyReleaseStages: []string{"production"}, NotifyReleaseStages: []string{"production"},
AppVersion: Version, AppVersion: Version,
ProjectPackages: []string{"github.com/castawaylabs/semaphore/**"}, ProjectPackages: []string{"github.com/ansible-semaphore/semaphore/**"},
}) })
} }