This is done by changing the cache key.
go get tools currently fail with:
# cd /home/runner/go/src/golang.org/x/tools; git pull --ff-only
From https://go.googlesource.com/tools
+ 63754364...8b4aab62 master -> origin/master (forced update)
ab9934f0..f2d1c246 gopls-release-branch.0.6 -> origin/gopls-release-branch.0.6
* [new branch] internal-branch.issue43628 -> origin/internal-branch.issue43628
* [new tag] gopls/v0.6.2 -> gopls/v0.6.2
* [new tag] gopls/v0.6.3-pre.1 -> gopls/v0.6.3-pre.1
fatal: Not possible to fast-forward, aborting.
package golang.org/x/tools/go/analysis: exit status 128
See https://github.com/periph/devices/pull/2/checks?check_run_id=1693498363
This is supposed to be sent out in GRB order (and the comment below also
below claims it), but the code (and corresponding unit tests) did output
RGB order.
First I imported the commits from v3.6.6 with:
PKG=devices
git init $PKG
cd $PKG
git remote add origin https://github.com/google/periph
git fetch origin
git filter-repo \
--path AUTHORS \
--path CONTRIBUTING.md \
--path CONTRIBUTORS \
--path LICENSE \
--path README.md \
--path $PKG --path experimental/$PKG $@
git remote add origin git@github.com:periph/$PKG
git fetch origin
# Use the occasion to rename from master to main since we are starting from
# scratch.
git branch -m main
git push origin main
Then I fixed the layout to get rid of experimental with:
git rm experimental/devices/README.md
git mv experimental/devices/* .
git mv devices/* .
The import paths will be fixed in a follow up.
This adds experimental support for the st7567 LCD device which is used by the GFX HAT from Pimoroni.
The example just places some pixels on the device and iterates over the possible contrast values, going into power save mode and waking up.
The command line tool can take a PNG image and paints the black pixels onto the LCD.
Example and command line tool have been tested with a GFX Hat.
Take inspiration from the workflows used in gohci and bootstrap but
disable many checks because it's going to take a while to fix them all.
Update go generate to make it work without prerequisites preinstalled.
Remove the corresponding checks from .travis.yml. There are still checks
that haven't been transitioned, this will be done in a follow up.
It now passes when run as:
staticcheck -checks all,-U1000,-ST1003,-SA5002,-SA1019 ./...
The disabled checks will be enabled later since they are less trivial to
enable, as this is already a non-trivial number of modifications.
- Temporarily disable caching of sources, it seems corrupted.
- Fix copyright on a few sources.
- Codecov is very aggressive about code coverage, reduce the
expectations.
- Remove deprecated sudo:false
- Add missing os:linux and update to dist:bionic
- Update to go1.14.x
- Convert from matrix to jobs
- Reformat to try to make it slightly more readable
Fix a go formatting that crept in.
* Fix white border color
* Add convenience functions DrawAll and SetModelColor
* Tidy up the initialisation code and apply bugfixes from the upstream
Python library
Now running:
! go vet -vettool=$(which shadow) ./... |& grep -v '"err"' | grep -e '^[^#]'
Which means that "err" aliasing is not checked, but others are. I may
enforce "err" aliasing later but it's more noisy so I'm not 100% sure
yet it's a good idea. Enforcing it for non-err variables looked like a
reasonable initial trade-off.
Ran the following command:
golint -min_confidence 0 ./... | grep -v ALL_CAPS | \
grep -v underscores | grep -v 'another file'
and fixed the comments that made sense.
- Converting the alert registers and the ambient temp register to a
physic.Temperature can use the same procedure. Unify them and document
why this is possible.
- Use != instead of > for bit checks
- Inline bitsToTemperature calls in SenseWithAlerts