go/gccgoimporter: fix tests for Plan9 · golang/go@af81789 (original) (raw)
Navigation Menu
Appearance settings
- AI CODE CREATION
* GitHub CopilotWrite better code with AI
* GitHub SparkBuild and deploy intelligent apps
* GitHub ModelsManage and compare prompts
* MCP RegistryNewIntegrate external tools - DEVELOPER WORKFLOWS
* ActionsAutomate any workflow
* CodespacesInstant dev environments
* IssuesPlan and track work
* Code ReviewManage code changes - APPLICATION SECURITY
* GitHub Advanced SecurityFind and fix vulnerabilities
* Code securitySecure your code as you build
* Secret protectionStop leaks before they start - EXPLORE
* Why GitHub
* Documentation
* Blog
* Changelog
* Marketplace
- AI CODE CREATION
- BY COMPANY SIZE
* Enterprises
* Small and medium teams
* Startups
* Nonprofits - BY USE CASE
* App Modernization
* DevSecOps
* DevOps
* CI/CD
* View all use cases - BY INDUSTRY
* Healthcare
* Financial services
* Manufacturing
* Government
* View all industries
- BY COMPANY SIZE
- EXPLORE BY TOPIC
* AI
* Software Development
* DevOps
* Security
* View all topics - EXPLORE BY TYPE
* Customer stories
* Events & webinars
* Ebooks & reports
* Business insights
* GitHub Skills - SUPPORT & SERVICES
* Documentation
* Customer support
* Community forum
* Trust center
* Partners
- EXPLORE BY TOPIC
- COMMUNITY
* GitHub SponsorsFund open source developers - PROGRAMS
* Security Lab
* Maintainer Community
* Accelerator
* Archive Program - REPOSITORIES
* Topics
* Trending
* Collections
- COMMUNITY
- Pricing
Provide feedback
We read every piece of feedback, and take your input very seriously.
Include my email address so I can be contacted
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Notifications You must be signed in to change notification settings
Additional navigation options
Commit af81789
committed
go/gccgoimporter: fix tests for Plan9
This is a backport of https://go-review.googlesource.com/#/c/11194/. Change-Id: I2f8a8efec77a29258c85f5a1b11cd9deb81853d0 Reviewed-on: https://go-review.googlesource.com/11210Reviewed-by: Ian Lance Taylor iant@golang.org
1 parent 605d5bf commit af81789
File tree
1 file changed
6
-
0
lines changed
- go/gccgoimporter
1 file changed
6
-
0
lines changed
go/gccgoimporter/importer.go
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -91,6 +91,12 @@ func openExportFile(fpath string) (reader io.ReadSeeker, closer io.Closer, err e | ||
| 91 | 91 | if err != nil { |
| 92 | 92 | return |
| 93 | 93 | } |
| 94 | +// reset to offset 0 - needed on Plan 9 (see issue #11265) | |
| 95 | +// TODO: remove once issue #11265 has been resolved. | |
| 96 | +_, err = f.Seek(0, 0) | |
| 97 | +if err != nil { | |
| 98 | +return | |
| 99 | + } | |
| 94 | 100 | |
| 95 | 101 | var elfreader io.ReaderAt |
| 96 | 102 | switch string(magic[:]) { |
0 commit comments
Comments
(0)