Skip to content

Commit

Permalink
refactor(docker): investigate alternative to lib/router path
Browse files Browse the repository at this point in the history
  • Loading branch information
jarali committed Nov 12, 2023
1 parent 0651c70 commit 835339a
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion go.work
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
go 1.21.2

use (
lib/router
lib
src/product-service
src/shoppinglist-service
src/user-service
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/http-proxy-service/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ require (
)

replace (
"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib" => ./../../lib/router
"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib/router" => ./../../lib/router
)
2 changes: 1 addition & 1 deletion src/http-proxy-service/proxy/default_manager.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package proxy

import (
router "hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib"
"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib/router"
"log"
"net/http"
"net/http/httputil"
Expand Down
2 changes: 1 addition & 1 deletion src/product-service/api/router/router.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package router

import (
router "hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib"
"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib/router"
"hsfl.de/group6/hsfl-master-ai-cloud-engineering/product-service/prices"
"hsfl.de/group6/hsfl-master-ai-cloud-engineering/product-service/products"
"net/http"
Expand Down
2 changes: 1 addition & 1 deletion src/product-service/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ module hsfl.de/group6/hsfl-master-ai-cloud-engineering/product-service
go 1.21

replace (
"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib" => ./../../lib/router
"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib/router" => ./../../lib/router
)
2 changes: 1 addition & 1 deletion src/shoppinglist-service/api/router/router.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package router

import (
router "hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib"
"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib/router"
"hsfl.de/group6/hsfl-master-ai-cloud-engineering/shoppinglist-service/userShoppingList"
"hsfl.de/group6/hsfl-master-ai-cloud-engineering/shoppinglist-service/userShoppingListEntry"
"net/http"
Expand Down
2 changes: 1 addition & 1 deletion src/shoppinglist-service/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ module hsfl.de/group6/hsfl-master-ai-cloud-engineering/shoppinglist-service
go 1.21

replace (
"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib" => ./../../lib/router
"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib/router" => ./../../lib/router
)
2 changes: 1 addition & 1 deletion src/user-service/api/router/router.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package router

import (
router "hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib"
"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib/router"
"hsfl.de/group6/hsfl-master-ai-cloud-engineering/user-service/api/handler"
"net/http"
)
Expand Down
2 changes: 1 addition & 1 deletion src/user-service/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ require (
golang.org/x/crypto v0.14.0 // indirect
)
replace (
"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib" => ./../../lib/router
"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib/router" => ./../../lib/router
)
2 changes: 1 addition & 1 deletion src/user-service/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
router "hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib"
"hsfl.de/group6/hsfl-master-ai-cloud-engineering/lib/router"
"log"
"net/http"
)
Expand Down

0 comments on commit 835339a

Please sign in to comment.