Skip to content

Instantly share code, notes, and snippets.

🌨️

Tomo Suzuki suztomo

🌨️
View GitHub Profile
@suztomo
suztomo / memo.md
Last active Jul 6, 2020
Spring Cloud GCP BOM structure
View memo.md
@suztomo
suztomo / gist:b9d2737ea3b42090c5cc13b3f6c0e491
Created Jun 26, 2020
"flutter build ios" encounters "FontSubset error": flutter build ios --verbose
View gist:b9d2737ea3b42090c5cc13b3f6c0e491
/tmp/font-subset-error/hello $ flutter build ios --verbose git[branch:master]
[ +13 ms] executing: [/Users/suztomo/development/flutter/] git -c log.showSignature=false log -n 1
--pretty=format:%H
[ +54 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] 9b9b543d9265484132c798adaab6caca52055b08
[ +1 ms] executing: [/Users/suztomo/development/flutter/] git tag --contains HEAD
[ +72 ms] Exit code 0 from: git tag --contains HEAD
[ ] 1.19.0-4.2.pre
[ +16 ms] executing: [/Users/suztomo/development/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +12 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
@suztomo
suztomo / gist:64ad27f3caaa90e38bd9ff963c3c5d9b
Last active Jun 25, 2020
Flutter beta fails with "Failed to subset font"
View gist:64ad27f3caaa90e38bd9ff963c3c5d9b
~/Documents/hitomemo $ tail -30 /Users/suztomo/Library/Logs/gym/Runner-Runner.log git[branch:dev]
export VALIDATE_WORKSPACE=YES_ERROR
export VALID_ARCHS="arm64 arm64e armv7 armv7s"
export VERBOSE_PBXCP=NO
export VERSIONING_SYSTEM=apple-generic
export VERSIONPLIST_PATH=Runner.app/version.plist
export VERSION_INFO_BUILDER=suztomo
export VERSION_INFO_FILE=Runner_vers.c
export VERSION_INFO_STRING=""@(#)PROGRAM:Runner PROJECT:Runner-6""
export WATCHKIT_2_SUPPORT_FOLDER_PATH=/Users/suztomo/Library/Developer/Xcode/DerivedData/Runner-bwdncqwtelezipfohaojqhhtsssq/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/WatchKitSupport2
@suztomo
suztomo / gist:64c6c68621724c91a90c698e6770c8c8
Created Jun 24, 2020
ArtifactCompatibilityCheck org.apache.beam:beam-runners-google-cloud-dataflow-java:2.23.0-SNAPSHOT com.google.cloud:libraries-bom:pom:7.0.2
View gist:64c6c68621724c91a90c698e6770c8c8
org.apache.beam:beam-runners-google-cloud-dataflow-java:2.23.0-SNAPSHOT intrinsic problems ('problem x source' pairs): 9
com.google.cloud:libraries-bom:pom:7.0.2 intrinsic problems ('problem x source' pairs): 5
(org.apache.beam:beam-sdks-java-harness:2.23.0-20200624.071515-45) com.google.common.collect.JdkBackedImmutableMultiset's method writeReplace() is not implemented in the class
referenced by
ClassFile{location=com.google.guava:guava:29.0-android, className=com.google.common.collect.ImmutableMultiset}
(io.netty:netty-handler:4.1.30.Final) io.netty.handler.ssl.SslProvider's method isAlpnSupported(io.netty.handler.ssl.SslProvider arg1) is not found
referenced by
ClassFile{location=io.grpc:grpc-netty:1.30.2, className=io.grpc.netty.ProtocolNegotiators}
(com.google.guava:guava:29.0-android) com.google.common.collect.ImmutableList's method toImmutableList() is not found
referenced by
@suztomo
suztomo / gist:aaebc34b3933eec3573e940aed517fe2
Created Jun 22, 2020
Linkage Checker 1.4.2 detects new linkage errors (compared to 1.4.0)
View gist:aaebc34b3933eec3573e940aed517fe2
suztomo@suztomo:~/beam$ ./sdks/java/build-tools/beam-linkage-check.sh
HEAD is now at 4dfc8a1351 Merge pull request #11405: [BEAM-9747] Deprecate RedisIO.readAll() and add RedisIO.readKeyPatterns as a replacement
Mon 22 Jun 2020 03:59:53 PM UTC: Running linkage check (baseline) for beam-sdks-java-core in master
Mon 22 Jun 2020 03:59:53 PM UTC: to create a baseline (existing errors before change) build/linkagecheck/baseline-beam-sdks-java-core.xml
Configuration on demand is an incubating feature.
> Task :checkJavaLinkage
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
@suztomo
suztomo / gist:57e888b95556e5741cced3999313a2f8
Created Jun 22, 2020
beam-linkage-check.sh for dpcollins-google/pubsublite_beam
View gist:57e888b95556e5741cced3999313a2f8
suztomo@suztomo:~/beam$ git checkout pubsublite_beam
Previous HEAD position was 9eab347073 Merge pull request #12001 from tysonjh/BEAM-10082
Switched to branch 'pubsublite_beam'
Your branch is ahead of 'dpcollins-google/pubsublite_beam' by 1 commit.
(use "git push" to publish your local commits)
suztomo@suztomo:~/beam$ sh sdks/java/build-tools/beam-linkage-check.sh
HEAD is now at 9eab347073 Merge pull request #12001 from tysonjh/BEAM-10082
Mon 22 Jun 2020 03:16:43 PM UTC: Installing artifacts of master(9eab3470) to Maven local repository.
Mon 22 Jun 2020 03:22:27 PM UTC: Running linkage check (baseline) for beam-sdks-java-core in master
Mon 22 Jun 2020 03:22:27 PM UTC: to create a baseline (existing errors before change) build/linkagecheck/baseline-beam-sdks-java-core.xml
@suztomo
suztomo / gist:60a5def921dee2df7dff1ad395ea3b95
Last active Jun 22, 2020
Beam :sdks:java:bom:publishMavenJavaPublicationToMavenLocal failure supplied version does not match POM file
View gist:60a5def921dee2df7dff1ad395ea3b95
suztomo@suztomo:~/beam$ sh sdks/java/build-tools/beam-linkage-check.sh
HEAD is now at 9eab347073 Merge pull request #12001 from tysonjh/BEAM-10082
Mon 22 Jun 2020 03:13:04 PM UTC: Installing artifacts of master(9eab3470) to Maven local repository.
suztomo@suztomo:~/beam$ cat build/linkage-checker.log
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :buildSrc:compileJava NO-SOURCE
> Task :buildSrc:compileGroovy
> Task :buildSrc:pluginDescriptors UP-TO-DATE
> Task :buildSrc:processResources UP-TO-DATE
> Task :buildSrc:classes
@suztomo
suztomo / memo.md
Created Jun 19, 2020
Sbt dependency tree task
View memo.md

Demo of sbt dependencyTree task applied to hello project through sbt-dependency-graph plugin.

suztomo-macbookpro44% cat ~/.sbt/1.0/plugins/plugins.sbt 
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.10.0-RC1")
suztomo-macbookpro44% sbt dependencyTree
[info] Loading settings for project global-plugins from plugins.sbt ...
[info] Loading global plugins from /Users/suztomo/.sbt/1.0/plugins
[info] Updating ProjectRef(uri("file:/Users/suztomo/.sbt/1.0/plugins/"), "global-plugins")...
@suztomo
suztomo / gist:f7a6694cf232965900f73201295f358b
Created Jun 18, 2020
Example output from Gradle plugin that shows Dependency Paths
View gist:f7a6694cf232965900f73201295f358b
| > Task :linkageCheck
| Linkage Checker rule found 58 errors. Linkage error report:
| Class com.jcraft.jzlib.JZlib is not found;
| referenced by 4 class files
| io.grpc.netty.shaded.io.netty.handler.codec.spdy.SpdyHeaderBlockJZlibEncoder (io.grpc:grpc-netty-shaded:1.28.1)
| io.grpc.netty.shaded.io.netty.handler.codec.compression.JZlibEncoder (io.grpc:grpc-netty-shaded:1.28.1)
| io.grpc.netty.shaded.io.netty.handler.codec.compression.ZlibUtil (io.grpc:grpc-netty-shaded:1.28.1)
| io.grpc.netty.shaded.io.netty.handler.codec.compression.JZlibDecoder (io.grpc:grpc-netty-shaded:1.28.1)
| Class com.jcraft.jzlib.Deflater is not found;
| referenced by 3 class files
@suztomo
suztomo / memo.md
Created Jun 17, 2020
Libraries BOM difference between 5.7.0, 6.0.0, and 7.0.0
View memo.md

5.7.0 and 6.0.0

suztomo-macbookpro44% git diff v5.7.0-bom v6.0.0-bom  -- boms/cloud-oss-bom/pom.xml
diff --git a/boms/cloud-oss-bom/pom.xml b/boms/cloud-oss-bom/pom.xml
index e578bc98..4bd489ed 100644
--- a/boms/cloud-oss-bom/pom.xml
+++ b/boms/cloud-oss-bom/pom.xml
@@ -7,7 +7,7 @@
 
You can’t perform that action at this time.