Skip to content

Upgrade to Casbin v3.9.0#57

Closed
Copilot wants to merge 2 commits intomasterfrom
copilot/upgrade-to-casbin-v3
Closed

Upgrade to Casbin v3.9.0#57
Copilot wants to merge 2 commits intomasterfrom
copilot/upgrade-to-casbin-v3

Conversation

Copy link
Contributor

Copilot AI commented Jan 13, 2026

Upgrades Casbin dependency from v2.66.1 to v3.9.0 to include latest bug fixes.

Changes

Dependencies:

  • github.com/casbin/casbin/v2v3 v3.9.0
  • Updated import paths across codebase (watcher.go, watcher_test.go, README.md)

API Breaking Change:

  • GetPolicy() now returns ([][]string, error) instead of [][]string
  • Updated test assertions to capture error return value:
// Before (v2)
if !reflect.DeepEqual(e2.GetPolicy(), e.GetPolicy()) {
    // ...
}

// After (v3)
e2Policy, _ := e2.GetPolicy()
ePolicy, _ := e.GetPolicy()
if !reflect.DeepEqual(e2Policy, ePolicy) {
    // ...
}

Transitive Updates:

  • github.com/Knetic/govaluategithub.com/casbin/govaluate v1.3.0
  • github.com/google/uuid v1.3.0 → v1.6.0
  • Added github.com/bmatcuk/doublestar/v4 v4.6.1

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • go.googlesource.com
    • Triggering command: /update-job-proxy /update-job-proxy (dns block)
  • https://api.github.com/repos/casbin/casbin/releases/tags/v3.0.0
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Upgrade to Casbin v3</issue_title>
<issue_description>Could we upgrade to Casbin v3 to include the latest bug fixes?

For example: apache/casbin#1656

the latest Casbin version is: https://github.com/casbin/casbin/releases/tag/v3.9.0</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@nomeguy nomeguy marked this pull request as ready for review January 13, 2026 17:38
Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade to Casbin v3 for latest bug fixes Upgrade to Casbin v3.9.0 Jan 13, 2026
Copilot AI requested a review from nomeguy January 13, 2026 17:48
@nomeguy nomeguy closed this Jan 13, 2026
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.

Upgrade to Casbin v3

3 participants