Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Upgrading import paths for casbin/v2 and fixing travis #11

Merged
merged 3 commits into from
Jun 3, 2021

Conversation

hiteshsethi
Copy link
Member

This PR fixes:

  1. import paths relative to casbin/v2
  2. Introduces go mod in this pkg
  3. Fixes travis-ci issues

@hiteshsethi hiteshsethi force-pushed the master branch 2 times, most recently from f94eaa5 to 5113a95 Compare May 19, 2021 20:15
@hiteshsethi hiteshsethi changed the title Upgrading import paths for casbin/v2 and fixing travis fix: Upgrading import paths for casbin/v2 and fixing travis May 19, 2021
1. update casbin import paths to v2
2. used go mod to have strict vendor dependency
3. fixed travis ci, added makefile, resolved lint issues

Signed-off-by: hiteshsethi <hitesh.28jan@gmail.com>
@hiteshsethi
Copy link
Member Author

cc: @hsluoyz

.travis.yml Outdated Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@hsluoyz hsluoyz requested review from sagilio and kilosonc May 20, 2021 01:13
Copy link
Contributor

@kilosonc kilosonc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change travis into github action, like https://github.com/casbin/gorm-adapter/blob/master/.github/workflows/ci.yml

Makefile Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
@hsluoyz
Copy link
Member

hsluoyz commented May 20, 2021

@closetool we can switch to GitHub Actions in next PR. @hiteshsethi

…ndency

Signed-off-by: hiteshsethi <hitesh.28jan@gmail.com>
.gitignore Outdated Show resolved Hide resolved
.travis.yml Outdated
@@ -3,6 +3,7 @@ language: go
sudo: required

go:
- "1.14"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this change. 1.14 is too too old.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to consider writing 1.16 here?

go.mod Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented May 21, 2021

Coverage Status

Coverage increased (+0.3%) to 77.465% when pulling 5b2f26f on hiteshsethi:master into 1147baf on casbin:master.

@hsluoyz
Copy link
Member

hsluoyz commented May 21, 2021

@hiteshsethi I suggest installing latest Go 1.16.x and then do the PR again.

@hiteshsethi
Copy link
Member Author

review comments are fixed
cc: @hsluoyz

@hiteshsethi
Copy link
Member Author

@hiteshsethi I suggest installing latest Go 1.16.x and then do the PR again.

I've been using go1.15.6
Any reason for asking?

@hsluoyz
Copy link
Member

hsluoyz commented May 21, 2021

For:

image

@hiteshsethi
Copy link
Member Author

Did this because of
image

@hsluoyz
Copy link
Member

hsluoyz commented May 21, 2021

I suggesting using latest.

Signed-off-by: hiteshsethi <hitesh.28jan@gmail.com>
@hiteshsethi
Copy link
Member Author

@hsluoyz any changes left?

@hsluoyz
Copy link
Member

hsluoyz commented Jun 3, 2021

lgtm

@hsluoyz hsluoyz merged commit c297c0e into casbin:master Jun 3, 2021
@github-actions
Copy link

github-actions bot commented Jun 4, 2021

🎉 This PR is included in version 1.0.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants