Skip to content

Fixes #437 : Updated GetAvailableDiskSize function#438

Open
sundaram2021 wants to merge 2 commits intokonstructio:mainfrom
sundaram2021:fix/disk-space-check
Open

Fixes #437 : Updated GetAvailableDiskSize function#438
sundaram2021 wants to merge 2 commits intokonstructio:mainfrom
sundaram2021:fix/disk-space-check

Conversation

@sundaram2021
Copy link

Description

in internal/validations.go
we have syscall.Statfs and Statfs_t which are os specific methods and does not work in windows
so what i have does add a pkf "github.com/shirou/gopsutil/disk"
which is used to calculate the available disk and it is os independent and maintained regularly

Related Issue(s)

Fixes # 437

How to test

clone repo on a windows machine and you will straight away see that

@patrickdappollonio
Copy link
Contributor

Hey @sundaram2021! Would you mind bumping/updating the go.mod and go.sum here? A go mod tidy would suffice.

We would love to merge this whenever possible! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants