Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Merge go1.19 branch to master #1269

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

Merged
merged 50 commits into from
Feb 24, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
a0b7135
Update Go version to 1.19.13 to begin work on Go 1.19 support.
nevkontakte Nov 12, 2023
c146af0
updated reflect and reflectlite
grantnelson-wf Nov 14, 2023
5090ba1
Merge pull request #1250 from Workiva/reflectUpdate
nevkontakte Nov 14, 2023
a76a603
Fixing a mistake found in reflect
grantnelson-wf Dec 4, 2023
528f1c8
Merge branch 'master' of github.com:gopherjs/gopherjs into reflectFix
grantnelson-wf Dec 4, 2023
0eb9c04
Merge pull request #1253 from Workiva/reflectFix
nevkontakte Dec 6, 2023
5edefc6
Update FuncKey and fix Http native
grantnelson-wf Dec 18, 2023
17263fa
Broke up parseAndAugment
grantnelson-wf Dec 18, 2023
6e1ec66
Extending Directives
grantnelson-wf Dec 18, 2023
9bcf242
Merge branch 'breakupAugment' of github.com:Workiva/gopherjs into add…
grantnelson-wf Dec 18, 2023
295da69
Merge branch 'extendDirectives' of github.com:Workiva/gopherjs into a…
grantnelson-wf Dec 18, 2023
27e1297
Adding purge directive
grantnelson-wf Dec 18, 2023
022eb64
Merge pull request #1255 from Workiva/updateFuncKey
nevkontakte Dec 19, 2023
f34e28b
Merge pull request #1256 from Workiva/breakupAugment
nevkontakte Dec 19, 2023
84774ae
Changed to use Inspect
grantnelson-wf Dec 19, 2023
b13f4d5
Merge branch 'go1.19' of github.com:gopherjs/gopherjs into addPurgeDi…
grantnelson-wf Dec 19, 2023
40bddb9
Merge branch 'extendDirectives' of github.com:Workiva/gopherjs into a…
grantnelson-wf Dec 19, 2023
7758c0d
Updated to use Inspect and srctesting
grantnelson-wf Dec 19, 2023
8ea6531
Merge pull request #1257 from Workiva/extendDirectives
nevkontakte Dec 21, 2023
bf0e797
Merge branch 'go1.19' of github.com:gopherjs/gopherjs into addPurgeDi…
grantnelson-wf Dec 29, 2023
38b4d3b
Merge pull request #1258 from Workiva/addPurgeDirective
nevkontakte Dec 29, 2023
e03bfea
Update compiler for go1.19
grantnelson-wf Jan 16, 2024
5f9eeb8
Fix Build Issue
grantnelson-wf Jan 16, 2024
a83c5fa
Updating natives for go1.19
grantnelson-wf Jan 16, 2024
cd17b90
Merge pull request #1261 from Workiva/updateCompiler19
nevkontakte Jan 19, 2024
5a98043
Updating documentation for build directives
grantnelson-wf Jan 19, 2024
1faba3b
Merge pull request #1260 from Workiva/fixBuildIssue
nevkontakte Jan 19, 2024
dea4768
Merge pull request #1262 from Workiva/updateNatives19
nevkontakte Jan 19, 2024
12a247d
Fix problem where import is named but source is augmented to only nee…
grantnelson-wf Jan 30, 2024
4b5b077
Fix chocolatey go version
grantnelson-wf Jan 30, 2024
d7abc77
Update known fails list of fixed bugs
grantnelson-wf Jan 30, 2024
95c01fa
Merge pull request #1263 from Workiva/go1.19BuildFix
nevkontakte Jan 30, 2024
91f1d44
Updated crypto natives
grantnelson-wf Jan 31, 2024
f5c911a
Fix natives for debug/pe
grantnelson-wf Jan 31, 2024
ff493e4
Update to go/token/position
grantnelson-wf Jan 31, 2024
cd055c9
Update hash/maphash
grantnelson-wf Jan 31, 2024
5437642
Update to reflect and reflectlite
grantnelson-wf Jan 31, 2024
8151b28
Update for fastrand
grantnelson-wf Jan 31, 2024
014360b
Updated net/netip
grantnelson-wf Jan 31, 2024
db5d7b3
Updating sync/atomic
grantnelson-wf Jan 31, 2024
710fdb7
Merge branch 'go1.19' of github.com:gopherjs/gopherjs into go1.19Nati…
grantnelson-wf Jan 31, 2024
a6b98dd
Update syscall/js
grantnelson-wf Jan 31, 2024
967ffcc
Fixed a copy/paste mistake
grantnelson-wf Jan 31, 2024
9e28c32
Merge pull request #1264 from Workiva/go1.19NativesUpdate
nevkontakte Jan 31, 2024
c08b7bf
Fixed chocolatey go version
grantnelson-wf Feb 13, 2024
02aea33
Limit augmentation and prune imports to natives that need it
grantnelson-wf Feb 13, 2024
c852920
Merge pull request #1266 from Workiva/forceChocolateyGoVersion
nevkontakte Feb 13, 2024
5d25518
Merge branch 'go1.19' of github.com:gopherjs/gopherjs into limitAugme…
grantnelson-wf Feb 13, 2024
a533e78
Merge pull request #1267 from Workiva/limitAugmentation
nevkontakte Feb 13, 2024
1011858
Update GopherJS version to 1.19.0-beta1 in perparation for release.
nevkontakte Feb 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions 2 build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,8 @@ func pruneImports(file *ast.File) {
path, _ := strconv.Unquote(in.Path.Value)
directivePrefix, hasPath := directiveImports[path]
if hasPath && astutil.HasDirectivePrefix(file, directivePrefix) {
// since the import is otherwise unused set the name to blank.
in.Name = ast.NewIdent(`_`)
delete(unused, name)
if len(unused) == 0 {
return
Expand Down
9 changes: 8 additions & 1 deletion 9 build/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,14 @@ func TestOverlayAugmentation(t *testing.T) {

//go:linkname runtimeNano runtime.nanotime
func runtimeNano() int64`,
noCodeChange: true,
want: `import _ "unsafe"
import "embed"

//go:embed hello.txt
var eFile embed.FS

//go:linkname runtimeNano runtime.nanotime
func runtimeNano() int64`,
expInfo: map[string]overrideInfo{
`eFile`: {},
`runtimeNano`: {},
Expand Down
6 changes: 5 additions & 1 deletion 6 circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ parameters:
go_version:
type: string
default: "1.19.13"
chocolatey_go_version:
type: string
# Chocolatey doesn't have 1.19.13, closest is 1.19.9
default: "1.19.9"
nvm_version:
type: string
default: "0.38.0"
Expand Down Expand Up @@ -171,7 +175,7 @@ jobs:
- run:
name: Install Go
command: |
choco install golang --version="<< pipeline.parameters.go_version >>" -my
choco install golang --version="<< pipeline.parameters.chocolatey_go_version >>" -my
go version
(Get-Command go).Path
[Environment]::SetEnvironmentVariable(
Expand Down
9 changes: 8 additions & 1 deletion 9 tests/gorepo/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,16 @@ var knownFails = map[string]failReason{
// These are new tests in Go 1.18
"fixedbugs/issue46938.go": {category: notApplicable, desc: "tests -d=checkptr compiler mode, which GopherJS doesn't support"},
"fixedbugs/issue47928.go": {category: notApplicable, desc: "//go:nointerface is a part of GOEXPERIMENT=fieldtrack and is not supported by GopherJS"},
"fixedbugs/issue49665.go": {category: other, desc: "attempts to pass -gcflags=-G=3 to enable generics, GopherJS doesn't expect the flag; re-enable in Go 1.19 where the flag is removed"},
"fixedbugs/issue48898.go": {category: other, desc: "https://github.com/gopherjs/gopherjs/issues/1128"},
"fixedbugs/issue48536.go": {category: usesUnsupportedPackage, desc: "https://github.com/gopherjs/gopherjs/issues/1130"},
"fixedbugs/issue53600.go": {category: lowLevelRuntimeDifference, desc: "GopherJS println format is different from Go's"},

// These are new tests in Go 1.19
"fixedbugs/issue50672.go": {category: usesUnsupportedGenerics, desc: "Checking function nesting with one function having a type parameter."},
"fixedbugs/issue53137.go": {category: usesUnsupportedGenerics, desc: "Checking setting type parameter of struct in parameter of a generic function."},
"fixedbugs/issue53309.go": {category: usesUnsupportedGenerics, desc: "Checking unused type parameter in method call to interface"},
"fixedbugs/issue53635.go": {category: usesUnsupportedGenerics, desc: "Checking switch type against nil type with unsupported type parameters"},
"fixedbugs/issue53653.go": {category: lowLevelRuntimeDifference, desc: "GopherJS println format of int64 is different from Go's"},
}

type failCategory uint8
Expand All @@ -164,6 +170,7 @@ const (
neverTerminates // Test never terminates (so avoid starting it).
usesUnsupportedPackage // Test fails because it imports an unsupported package, e.g., "unsafe".
requiresSourceMapSupport // Test fails without source map support (as configured in CI), because it tries to check filename/line number via runtime.Caller.
usesUnsupportedGenerics // Test uses generics (type parameters) that are not currently supported.
compilerPanic
unsureIfGopherJSSupportsThisFeature
lowLevelRuntimeDifference // JavaScript runtime behaves differently from Go in ways that are difficult to work around.
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.