forked from warrensbox/tgswitch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request warrensbox#97 from warrensbox/feature/skip-github-api
Feature/skip GitHub api
- Loading branch information
Showing
9 changed files
with
198 additions
and
555 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [0.5.0] - 2021-11-14 | ||
### Context | ||
- In the past, `tgswitch` uses github's API to get the list of releases. | ||
- `tgswitch` uses client autorization key to access the terragrunt releases, however, github limits the number of api calls `tgswitch` can make. | ||
- As a result, user cannot immediately download the version of terragrunt they want. They had to wait. | ||
|
||
### Added | ||
- `tgswitch` will now get th list of releases from [terragrunt list page maintined by warrensbox](https://warrensbox.github.io/terragunt-versions-list/) | ||
- `tgswitch` will directly download from the [terragrunt release page](https://github.com/gruntwork-io/terragrunt/releases) | ||
|
||
### Removed | ||
- removed all functions that would make API github calls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// +build !windows | ||
|
||
package lib | ||
|
||
import "golang.org/x/sys/unix" | ||
|
||
//Check if user has permission to directory : | ||
//dir=path to file | ||
//return bool | ||
func CheckDirWritable(dir string) bool { | ||
return unix.Access(dir, unix.W_OK) == nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.