mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	Use ProtonMail/go-crypto for opengpg in tests (#30736)
				
					
				
			This commit is contained in:
		
							
								
								
									
										2
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								go.mod
									
									
									
									
									
								
							| @@ -16,6 +16,7 @@ require ( | ||||
| 	gitea.com/lunny/levelqueue v0.4.2-0.20230414023320-3c0159fe0fe4 | ||||
| 	github.com/42wim/sshsig v0.0.0-20211121163825-841cf5bbc121 | ||||
| 	github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358 | ||||
| 	github.com/ProtonMail/go-crypto v1.0.0 | ||||
| 	github.com/PuerkitoBio/goquery v1.9.1 | ||||
| 	github.com/alecthomas/chroma/v2 v2.13.0 | ||||
| 	github.com/blakesmith/ar v0.0.0-20190502131153-809d4375e1fb | ||||
| @@ -135,7 +136,6 @@ require ( | ||||
| 	github.com/Masterminds/semver/v3 v3.2.1 // indirect | ||||
| 	github.com/Masterminds/sprig/v3 v3.2.3 // indirect | ||||
| 	github.com/Microsoft/go-winio v0.6.1 // indirect | ||||
| 	github.com/ProtonMail/go-crypto v1.0.0 // indirect | ||||
| 	github.com/RoaringBitmap/roaring v1.9.0 // indirect | ||||
| 	github.com/andybalholm/brotli v1.1.0 // indirect | ||||
| 	github.com/andybalholm/cascadia v1.3.2 // indirect | ||||
|   | ||||
| @@ -19,9 +19,9 @@ import ( | ||||
| 	"code.gitea.io/gitea/modules/test" | ||||
| 	"code.gitea.io/gitea/tests" | ||||
|  | ||||
| 	"github.com/ProtonMail/go-crypto/openpgp" | ||||
| 	"github.com/ProtonMail/go-crypto/openpgp/armor" | ||||
| 	"github.com/stretchr/testify/assert" | ||||
| 	"golang.org/x/crypto/openpgp" | ||||
| 	"golang.org/x/crypto/openpgp/armor" | ||||
| ) | ||||
|  | ||||
| func TestGPGGit(t *testing.T) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user