Skip to content

Commit

Permalink
Merge pull request #264 from slimm609/rename_module
Browse files Browse the repository at this point in the history
fix: rename module to support go install
  • Loading branch information
slimm609 authored Sep 27, 2024
2 parents 86d945a + d43947f commit 1892460
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 16 deletions.
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ build:
test:
./tests/test-checksec.sh

.PHONY: compose-test
compose-test: go
docker-compose build
docker-compose run
.PHONY: build-image
build-image:
docker build -t slimm609/checksec .

.PHONY: go
go:
Expand Down
2 changes: 1 addition & 1 deletion cmd/dir.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"checksec/pkg/utils"
"github.com/slimm609/checksec/pkg/utils"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/file.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"checksec/pkg/utils"
"github.com/slimm609/checksec/pkg/utils"

"github.com/spf13/cobra"
)
Expand Down
5 changes: 3 additions & 2 deletions cmd/fortifyFile.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package cmd

import (
"checksec/pkg/checksec"
"checksec/pkg/utils"
"fmt"
"os"

"github.com/slimm609/checksec/pkg/checksec"
"github.com/slimm609/checksec/pkg/utils"

"github.com/spf13/cobra"
)

Expand Down
5 changes: 3 additions & 2 deletions cmd/fortifyProc.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package cmd

import (
"checksec/pkg/checksec"
"checksec/pkg/utils"
"fmt"
"os"
"path/filepath"

"github.com/slimm609/checksec/pkg/checksec"
"github.com/slimm609/checksec/pkg/utils"

"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/kernel.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"checksec/pkg/utils"
"github.com/slimm609/checksec/pkg/utils"

"github.com/spf13/cobra"
)
Expand Down
3 changes: 2 additions & 1 deletion cmd/proc.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package cmd

import (
"checksec/pkg/utils"
"fmt"
"os"

"github.com/slimm609/checksec/pkg/utils"

"path/filepath"

"github.com/spf13/cobra"
Expand Down
3 changes: 2 additions & 1 deletion cmd/procAll.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package cmd

import (
"checksec/pkg/utils"
"fmt"
"os"
"path/filepath"

"github.com/slimm609/checksec/pkg/utils"

"github.com/shirou/gopsutil/v3/process"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 2 additions & 0 deletions cmd/procLibs.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
var procLibsCmd = &cobra.Command{
Use: "procLibs",
Short: "check process libraries",
// hide until refactored
Hidden: true,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("procLibs called")
},
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module checksec
module github.com/slimm609/checksec

go 1.21.4

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "checksec/cmd"
import "github.com/slimm609/checksec/cmd"

func main() {
cmd.Execute()
Expand Down
3 changes: 2 additions & 1 deletion pkg/utils/checks.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package utils

import (
"checksec/pkg/checksec"
"reflect"

"github.com/slimm609/checksec/pkg/checksec"
)

// RunFileChecks - Run the file checks
Expand Down

0 comments on commit 1892460

Please sign in to comment.