Skip to content

Commit

Permalink
Merge pull request #222 from ishiDACo/feature/221-migrating-to-go-mod…
Browse files Browse the repository at this point in the history
…ules

[#221] Migrating to Go Modules
  • Loading branch information
ishiDACo authored Feb 22, 2021
2 parents 79c704e + bcdb449 commit 951e960
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 49 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
FROM golang:alpine as builder
FROM golang:1.15-alpine as builder

RUN apk --no-cache add git

ENV REPOSITORY github.com/ishiDACo/vulsrepo

COPY . $GOPATH/src/$REPOSITORY
RUN cd $GOPATH/src/$REPOSITORY/server \
&& go get -u github.com/golang/dep/... \
&& dep ensure \
&& go mod download \
&& go build -ldflags "-s -w" -o $GOPATH/bin/vulsrepo-server

RUN mkdir /vulsrepo \
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h3 class="drawer-title">Select File</h3>
<nav class="navbar navbar-inverse">

<div class="navbar-header">
<a id="toolName" class="navbar-brand">VulsRepo <span id="toolVersion">v0.6.0</span></a>
<a id="toolName" class="navbar-brand">VulsRepo <span id="toolVersion">v0.6.1</span></a>
</div>
<div class="collapse navbar-collapse">
<button id="Setting" type="button" class="btn btn-default navbar-btn glyphicon glyphicon-wrench pull-right"></button>
Expand Down
36 changes: 0 additions & 36 deletions server/Gopkg.lock

This file was deleted.

9 changes: 0 additions & 9 deletions server/Gopkg.toml

This file was deleted.

10 changes: 10 additions & 0 deletions server/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module github.com/ishiDACo/vulsrepo/server

go 1.15

require (
github.com/BurntSushi/toml v0.3.0
github.com/abbot/go-http-auth v0.4.0
golang.org/x/crypto v0.0.0-20170916190215-7d9177d70076
golang.org/x/net v0.0.0-20170915142106-8351a756f30f
)

0 comments on commit 951e960

Please sign in to comment.