Skip to content

Commit

Permalink
feat: add warning about issues with Bun package manager
Browse files Browse the repository at this point in the history
- Added a warning indicating current problems using Bun as a package manager.
- This is a temporary measure until the issue is resolved.
  • Loading branch information
RaulCatalinas committed Jul 22, 2024
1 parent c36c572 commit 85576d6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/types/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ const (
Error MessageType = "error"
Info MessageType = "info"
Config MessageType = "config"
Warning MessageType = "warning"
)
8 changes: 8 additions & 0 deletions internal/user-input/package-managers.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package userinput

import (
"fmt"
"os"

"github.com/RaulCatalinas/HuskyBC/internal/constants"
Expand All @@ -26,6 +27,13 @@ func GetPackageManager() types.PackageManager {
PackageManager string `survey:"packageManger"`
}{}

utils.WriteMessage(utils.WriteMessageProps{
Type: "warning",
Message: "When using Bun as a package manager it's possible that the dependencies aren't installed correctly, we're working on it.",
})

fmt.Println()

err := survey.Ask(questions, &answers)

if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions internal/utils/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ func WriteMessage(props WriteMessageProps) {

case "config":
fmt.Println("\033[37m" + props.Message + "\033[0m")
case "warning":
fmt.Println("\033[33m" + props.Message + "\033[0m")
}
}

0 comments on commit 85576d6

Please sign in to comment.