8000 Comparing v0.3.0...v0.3.1 · mvdan/gofumpt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mvdan/gofumpt
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.3.0
Choose a base ref
...
head repository: mvdan/gofumpt
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.3.1
Choose a head ref
  • 10 commits
  • 11 files changed
  • 2 contributors

Commits on Feb 22, 2022

  1. CHANGELOG: add missing tag link

    Forgetting this is a classic.
    mvdan committed Feb 22, 2022
    Configuration menu
    Copy the full SHA
    de3450b View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2022

  1. format: fix copy-paste mistake in Options.ModulePath

    I used LangVersion as a starting point, and I must have forgot to delete
    some of the old lines when modifying in-place.
    
    Thanks to Rob Findley for spotting this.
    mvdan committed Feb 23, 2022
    Configuration menu
    Copy the full SHA
    6952740 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2022

  1. README: tweak setup instructions for Emacs lsp-mode ≥ 8.0.0

    The Emacs lsp-mode 8.0.0 release, https://github.com/emacs-lsp/lsp-mode/releases/tag/8.0.0,
    exposed the gofumpt setting as a custom variable.
    
    Updates the installation instructions with the new setting,
    while keeping the old method for versions below 8.0.0.
    gustav-b authored Mar 4, 2022
    Configuration menu
    Copy the full SHA
    2becf2f View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2022

  1. README: stop mentioning govim and vim-go versions

    Both Vim plugins added support for gofumpt via gopls well over a year
    ago. Stop ensuring the user is up to date, because they most likely are.
    mvdan committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    06043a6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9b05d69 View commit details
    Browse the repository at this point in the history
  3. README: update version info now that Go 1.18 is out

    cmd/gofmt saw no changes since 1.18rc1.
    mvdan committed Mar 16, 2022
    Configuration menu
    Copy the full SHA
    edc2d69 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2022

  1. remove unintentional debug prints

    These were introduced when syncing gofumpt with gofmt from Go 1.18rc1.
    I didn't notice partially because our tests weren't strict enough;
    fix that as well.
    
    While here, gofumpt our own source code.
    mvdan committed Mar 18, 2022
    Configuration menu
    Copy the full SHA
    9eee203 View commit details
    Browse the repository at this point in the history
  2. overhaul how we load module info to format Go files

    We would call "go mod edit -json" for each Go file we formatted,
    as each file may be in a different directory,
    and thus inside a different module.
    
    However, the first mistake is that we always ran the command in the
    directory where gofumpt is run, not the directory containing each Go
    file. Our tests weren't strict enough to catch this; now
    octal-literal.txt is, via its run of gofmt before it calls cd.
    
    The second mistake, and a pretty embarrassing one, is that since v0.3.0
    made gofumpt concurrent, it has been racy in how it writes to globals
    like langVersion from multiple goroutines. octal-literals.txt now tests
    for this by adding a nested Go module.
    
    Finally, we could also run into open file limits,
    because spawning a child process and grabbing its output opens files of
    its own such as named pipes.
    The added test shows this with a limit of 256 and 10k tiny Go files:
    
    	--- FAIL: TestWithLowOpenFileLimit (0.30s)
    		ulimit_unix_test.go:82: writing 10000 tiny Go files
    		ulimit_unix_test.go:104: running with 1 paths
    		ulimit_unix_test.go:104: running with 10000 paths
    		ulimit_unix_test.go:112:
    			error:
    			  got non-nil error
    			comment:
    			  stderr:
    			  open /tmp/TestWithLowOpenFileLimit2753748366/001/p003/014.go: too many open files
    			  open /tmp/TestWithLowOpenFileLimit2753748366/001/p003/017.go: too many open files
    			  open /tmp/TestWithLowOpenFileLimit2753748366/001/p004/000.go: too many open files
    			  open /tmp/TestWithLowOpenFileLimit2753748366/001/p004/019.go: too many open files
    
    Instead, only call "go mod edit -json" once per directory,
    and do it in the main thread to reduce its parallelism.
    Also make it grab fdSem as well, for good measure.
    
    This may not be a complete fix, as we're not sure how many files are
    open by an exec.Command.Output call. However, we are no longer able to
    reproduce a failure, so leave that as a TODO.
    
    Fixes #208.
    mvdan committed Mar 18, 2022
    Configuration menu
    Copy the full SHA
    1dfe9ca View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2022

  1. bump deps before the upcoming bugfix release

    This should help with support for Go 1.18.
    mvdan committed Mar 21, 2022
    Configuration menu
    Copy the full SHA
    41c1118 View commit details
    Browse the repository at this point in the history
  2. prepare changelog for v0.3.1

    And start adding links for the major changes, so any interested users
    can read more into each topic.
    
    We also make the release links use the "v" prefix for consistency.
    mvdan committed Mar 21, 2022
    Configuration menu
    Copy the full SHA
    f04017f View commit details
    Browse the repository at this point in the history
Loading
0