Protect devfs last ruleset acquiring with mutex

This commit is contained in:
yo
2023-06-25 23:32:15 +02:00
parent 812c77790a
commit 5eed121f0b
2 changed files with 16 additions and 5 deletions

View File

@ -1,11 +1,12 @@
package cmd
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"fmt"
"sync"
"strings"
"io/ioutil"
"encoding/json"
"github.com/spf13/cobra"
"github.com/spf13/viper"
@ -55,6 +56,7 @@ var (
gFetchIntoDS string
gFetchFrom string
gMdevfs sync.Mutex
rootCmd = &cobra.Command{
Use: "gocage",