Browse Source

chore(server): deprecate mod temporarily

Yicheng Qin 11 years ago
parent
commit
a1a91ab75a
2 changed files with 6 additions and 3 deletions
  1. 3 1
      server/server.go
  2. 3 2
      test.sh

+ 3 - 1
server/server.go

@@ -207,7 +207,9 @@ func (s *Server) HTTPHandler() http.Handler {
 	s.handleFunc(router, "/version", s.GetVersionHandler).Methods("GET")
 	s.installV1(router)
 	s.installV2(router)
-	s.installMod(router)
+	// Mod is deprecated temporariy due to its unstable state.
+	// It would be added back later.
+	// s.installMod(router)
 
 	if s.trace {
 		s.installDebug(router)

+ 3 - 2
test.sh

@@ -23,8 +23,9 @@ go test -v ./server/v1/tests -race
 go test -i ./server/v2/tests
 go test -v ./server/v2/tests -race
 
-go test -i ./mod/lock/v2/tests
-go test -v ./mod/lock/v2/tests
+# Mod is deprecated temporarily.
+# go test -i ./mod/lock/v2/tests
+# go test -v ./mod/lock/v2/tests
 
 go test -i ./pkg/btrfs
 go test -v ./pkg/btrfs