Case-mismatch error when creating STAGE using existing STORAGE INTEGRATION

I've found an issue that's causing an error when creating a stage using a existing storage integration. Here's the scenario:

Existing STORAGE INTEGRATION from a previous Terraform apply.
Addition of Terraform changes which include:

Modification to the STORAGE INTEGRATION
New STAGE which uses the STORAGE INTEGRATION above
New grants on the existing STORAGE INTEGRATION and the new STAGE

Successful terraform plan
terraform apply fails due to capitalization of the STORAGE INTEGRATION name.

The successful terraform plan yielded (roughly) this plan:
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
~ update in-place
-/+ destroy and then create replacement

Terraform will perform the following actions:

  # snowflake_integration_grant.stage_programs_integration_usage will be created
+ resource "snowflake_integration_grant" "stage_programs_integration_usage" {
      + id               = (known after apply)
      + integration_name = "stage_edx_programs_reporting_s3_storage_integration"
      + privilege        = "ALL"
      + roles            = [
          + "PROGRAMS_RW",
          + "SECURITYADMIN",
          + "SYSADMIN",
        ]
    }

  # snowflake_stage.stage_edx_programs_reporting_s3_stage will be created
+ resource "snowflake_stage" "stage_edx_programs_reporting_s3_stage" {
      + aws_external_id     = (known after apply)
      + comment             = "Provides access to STAGE-EDX programs reporting S3 bucket from Snowflake."
      + database            = "PROD"
      + id                  = (known after apply)
      + name                = "stage_edx_programs_reporting_s3_stage"
      + schema              = "programs_reporting"
      + snowflake_iam_user  = (known after apply)
      + storage_integration = "stage_edx_programs_reporting_s3_storage_integration"
      + url                 = "s3://my_s3_bucket/"
    }

  # snowflake_stage_grant.stage_programs_stage_usage will be created
+ resource "snowflake_stage_grant" "stage_programs_stage_usage" {
      + database_name = "PROD"
      + id            = (known after apply)
      + privilege     = "USAGE"
      + roles         = [
          + "PROGRAMS_RW",
          + "SECURITYADMIN",
          + "SYSADMIN",
        ]
      + schema_name   = "programs_reporting"
      + stage_name    = "stage_edx_programs_reporting_s3_stage"
    }

  # snowflake_storage_integration.stage_edx_programs_reporting_s3_storage_integration must be replaced
-/+ resource "snowflake_storage_integration" "stage_edx_programs_reporting_s3_storage_integration" {
      ~ comment                   = "Storage integration used to access ALPHA_BETA programs S3 bucket." -> "Storage integration used to access ALPHA-BETA programs S3 bucket."
      ~ created_on                = "2020-04-30T21:37:48.394Z" -> (known after apply)
        enabled                   = true
      ~ id                        = "stage_edx_programs_reporting_s3_storage_integration" -> (known after apply)
      ~ name                      = "STAGE_EDX_PROGRAMS_REPORTING_S3_STORAGE_INTEGRATION" -> "stage_edx_programs_reporting_s3_storage_integration" # forces replacement
        storage_allowed_locations = [
            "s3://my_s3_bucket",
        ]
      ~ storage_aws_external_id   = "fake_external_id" -> (known after apply)
      ~ storage_aws_iam_user_arn  = "arn:aws:iam::999999999999:user/abcdefghijklmno" -> (known after apply)
        storage_aws_role_arn      = "arn:aws:iam::888888888888:role/programs_role"
        storage_provider          = "S3"
        type                      = "EXTERNAL_STAGE"
    }

Plan: 4 to add, 2 to change, 1 to destroy.

The terraform apply did not create the STAGE and generated this error:
running "/atlantis/bin/terraform0.12.24 apply -input=false -no-color \"/atlantis/repos/edx/terraform/2517/default/plans/snowflake/default.tfplan\"" in "/atlantis/repos/edx/terraform/2517/default/plans/snowflake": exit status 1
snowflake_storage_integration.stage_edx_programs_reporting_s3_storage_integration: Destroying... [id=stage_edx_programs_reporting_s3_storage_integration]
snowflake_role_grants.prod_rw["programs_reporting"]: Modifying... [id=PROGRAMS_REPORTING_RW]
snowflake_role_grants.prod_r["programs_reporting"]: Modifying... [id=PROGRAMS_REPORTING_R]
snowflake_storage_integration.stage_edx_programs_reporting_s3_storage_integration: Destruction complete after 1s
snowflake_storage_integration.stage_edx_programs_reporting_s3_storage_integration: Creating...
snowflake_role_grants.prod_rw["programs_reporting"]: Modifications complete after 2s [id=PROGRAMS_REPORTING_RW]
snowflake_storage_integration.stage_edx_programs_reporting_s3_storage_integration: Creation complete after 1s [id=stage_edx_programs_reporting_s3_storage_integration]
snowflake_role_grants.prod_r["programs_reporting"]: Modifications complete after 3s [id=PROGRAMS_REPORTING_R]

Error: Provider produced inconsistent final plan

When expanding the plan for
snowflake_integration_grant.stage_programs_integration_usage to include new
values learned so far during apply, provider
"registry.terraform.io/-/snowflake" produced an invalid new value for
.integration_name: was
cty.StringVal("stage_edx_programs_reporting_s3_storage_integration"), but now
cty.StringVal("STAGE_EDX_PROGRAMS_REPORTING_S3_STORAGE_INTEGRATION").

This is a bug in the provider, which should be reported in the provider's own
issue tracker.

Error: Provider produced inconsistent final plan

When expanding the plan for
snowflake_stage.stage_edx_programs_reporting_s3_stage to include new values
learned so far during apply, provider "registry.terraform.io/-/snowflake"
produced an invalid new value for .storage_integration: was
cty.StringVal("stage_edx_programs_reporting_s3_storage_integration"), but now
cty.StringVal("STAGE_EDX_PROGRAMS_REPORTING_S3_STORAGE_INTEGRATION").

This is a bug in the provider, which should be reported in the provider's own
issue tracker.

Perhaps it's the fact that the STORAGE INTEGRATION was already created by a previous terraform apply that yielded the name's uppercase/lowercase mismatch? However, the apply shows a destroy/create of that STORAGE INTEGRATION so 🤷♀ ?

My guess is that we need to add some diff suppression on case differences in the name.

We are closing this issue as part of a cleanup described in announcement. If you believe that the issue is still valid in v0.89.0, please open a new ticket.


[all/artifactory] binarystore.xml must be located in path $ARTIFACTORY_HOME/etc/artifactory/

What this PR does / why we need it:
According to the documentation (+ tests performed with HA setup), the binarystore.xml file must be located in path $ARTIFACTORY_HOME/etc/artifactory/.
Otherwise Artifactory generates the default one during first startup.

https://www.jfrog.com/confluence/display/JFROG/Configuring+the+Filestore

Which issue this PR fixes:
N/A
Special notes for your reviewer:
Tested for Ansible, but not for Azure and Terraform.

I have read the CLA Document and I hereby sign the CLA


Remove dead code

Seems that this code is never actually compiled, since TCMALLOC_ALIAS is always defined.
This line mentions MallocHook::InvokeNewHook, put there are no other mentions of MallocHook in the repository since initial commit.
As far as I can tell, MallocHook was initially present in gperftools, but later was removed from tcmalloc.
https://github.com/gperftools/gperftools/blob/f7c6fb6c8e99d6b1b725e5994373bcd19ffdf8fd/src/gperftools/malloc_hook.h#L98

Thanks for the pull request (and sorry for the delay in reviewing this).
Our internal implementation does have a hook implementation, as can be surmised from gperftools and this symbol in tcmalloc.cc.  The API for it has grown organically quite a bit, and so it's in need of cleanup before it's ready for release.
I'm going to put together a change in our internal implementation to clean this up--but it's a bit easier to do it on that side

That change has since been merged in db999d0cb29e17c9b628018d136cf6eabc3bdf20.


NFS doesn't provision a pv for pvc request

I practice create pvc absolutely as the guide given.
Things went well when I created the deployment, service and storage class, but the state of pvc is always pending.
And here is some output-information:

[root@node-1 nfs]# kubectl describe pvc nfs
Name:          nfs
Namespace:     default
StorageClass:  example-nfs
Status:        Pending
Volume:
Labels:
Annotations:   volume.beta.kubernetes.io/storage-class=example-nfs
volume.beta.kubernetes.io/storage-provisioner=example.com/nfs
Finalizers:    []
Capacity:
Access Modes:
Events:
Type         Reason                                Age                        From                                     Message
Normal    ExternalProvisioning    0s (x63 over 15m)    persistentvolume-controller       waiting for a volume to be created, either by external provisioner "example.com/nfs" or manually created by system administrator

[root@node-1 nfs]# kubectl logs nfs-provisioner-c4f445d5-667h9

I0207 08:56:14.603999       1 main.go:65] Provisioner example.com/nfs specified
I0207 08:56:14.604960       1 main.go:85] Starting NFS server!
I0207 08:56:14.878221       1 server.go:139] starting RLIMIT_NOFILE rlimit.Cur 1048576, rlimit.Max 1048576
I0207 08:56:14.878962       1 server.go:150] ending RLIMIT_NOFILE rlimit.Cur 1048576, rlimit.Max 1048576
I0207 08:56:14.905332       1 controller.go:392] Starting provisioner controller c0bfaa29-0be4-11e8-83d0-0242ac110005!
E0207 08:56:14.913251       1 reflector.go:201] github.com/kubernetes-incubator/external-storage/lib/controller/controller.go:396: Failed to list *v1.PersistentVolumeClaim: persistentvolumeclaims is forbidden: User "system:serviceaccount:default:default" cannot list persistentvolumeclaims at the cluster scope
E0207 08:56:14.913356       1 reflector.go:201] github.com/kubernetes-incubator/external-storage/lib/controller/controller.go:397: Failed to list *v1.PersistentVolume: persistentvolumes is forbidden: User "system:serviceaccount:default:default" cannot list persistentvolumes at the cluster scope>

Did I forget anything or is there any config file need to be edit?

 Many thanks!!!


Consider normalizing To/From/Cc etc contents

The To: and Cc: headers are currently stored as text:
https://github.com/simonw/mbox-to-sqlite/blob/9c1e65a1c353572c4b0262236537559c548723cd/tests/test_mbox_to_sqlite.py#L35-L37
Maybe normalize these and extract them out nto many-to-many tables?
This would also need to handle Name<EMAIL_ADDRESS>formatted data.

Also an opportunity to clean up that \n\t in<EMAIL_ADDRESS><EMAIL_ADDRESS>


Can't generate entpb.pb.go and entpb_..._service.go

Can't generate entpb.pb.go and entpb_..._service.go files

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

When I run go generate ./ent:
Didn't generate entpb.pb.go and entpb_..._service.go files
But when I run go generate ./... there's an error:
2022/04/06 10:29:26 internal error: package "context" without types was imported from "entgo.io/ent"
--entgrpc_out: protoc-gen-entgrpc: Plugin failed with status code 1.
ent/proto/entpb/generate.go:2: running "protoc": exit status 1

Expected Behavior 🤔
Generate entpb.pb.go and entpb_..._service.go files

Steps to Reproduce 🕹

https://github.com/luthfimasruri/generate_entproto
Steps:

run go generate ./ent or go generate ./...

Your Environment 🌎

Tech
Version

Go
1.18

Ent
0.10.1

Thanks for reporting this! I'll take look at it.

This seems to be somehow related to go1.18, some recent changes to ent/contrib should resolve.
Can you check if upgrading to the latest ent/contrib and installing the latest version of protoc-gen-entgrpc helps?
go get entgo.io/contrib@master
go install entgo.io/contrib/entproto/cmd/protoc-gen-entgrpc

It works after upgrading ent/contrib to the latest version.
Thanks for your help

Any update on this issue:
https://github.com/ent/ent/issues/2383


Include greedy target factor predictions in model score, allowing scoring of data with target factors.

Pull Request Checklist

[x] Changes are complete (if posting work-in-progress code, prefix your pull request title with '[WIP]'
until you can check this box.
[x] Unit tests pass (pytest)
[x] Were system tests modified? If so did you run these at least 5 times to account for the variation across runs?
[x] System tests pass (pytest test/system)
[x] Passed code style checking (./style-check.sh)
[x] You have considered writing a test
[x] Updated major/minor version in sockeye/__init__.py. Major version bump if this is a backwards incompatible change.
[x] Updated CHANGELOG.md

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

(1) Does it make sense to provide both word scores and TF scores (instead of summing them directly)? I'm not sure if simply summing them could make score calibration worse.
(2) TFs are generally easy to predict, so per-token TF scores in a segment could be very close. Could max or min (depending on the sign) be more informative?

You have a good point about score calibration. Let me make this WIP and reconsider. Returning separate scores for each factor sequence is likely cleanest and allows users to decide how to combine the scores.

@xingniu I updated the PR. Change turned out to be a bit larger than I initially expected but I agree with you that returning the scores separately is the better choice.

It looks like we also need to update the version.


Silent Shooting for a6000 could be posibble?

very useful for shooting street
+1

+1

+1

I have dumped the bin files for silent shooting on/off here #397 but have been unable thus far to figure out which setting(s) need to be changed to get this working on other cameras. I can see references to silent shooting settings in the dumped firmware all the way down to the a5000 so i think it should be possible.


Add support for using the listCollections command after MongoDB 2.7.7

See SERVER-2442

See https://jira.mongodb.org/browse/SERVER-17298


WSL2 ECP can't find gpu device

In WSL2, I have configured cuda, and docker has also configured nvidia's runtime. You can see in my snapshot that I can start a cuda container to execute nvidia-smi and display my 3080, but the ECP resource-exporter always Can't find my GPU

The wsl environment has not been tested, we will test it later


Collection Linked Nodes Relationship endpoint and Relationship API groundwork

Ticket: https://openscience.atlassian.net/browse/OSF-5533
Purpose
Lay down the groundwork for relationship endpoints as per JSON API specs and, more specifically, add the /collections/<collection_id>/relationships/linked_nodes/ endpoint to allow the creation, retrieval, update and destruction if node links in a collection. This is done in this manner:
Create
        Method:        POST
        URL:           /links/self
        Query Params:  <none>
        Body (JSON):   {
                         "data": [{
                           "type": "linked_nodes",   # required
                           "id": <node_id>   # required
                         }]
                       }
        Success:       201

This requires both admin permission on the collection, and for the user that is
making the request to be able to read the nodes requested. Data can be contain any number of
node identifiers. This will create a node_link for all node_ids in the request that
do not currently have a corresponding node_link in this collection.
Update
        Method:        PUT || PATCH
        URL:           /links/self
        Query Params:  <none>
        Body (JSON):   {
                         "data": [{
                           "type": "linked_nodes",   # required
                           "id": <node_id>   # required
                         }]
                       }
        Success:       200

This requires both admin permission on the collection, and for the user that is
making the request to be able to read the nodes requested. Data can be contain any number of
node identifiers. This will replace the contents of the node_links for this collection with
the contents of the request. It will delete all node links that don't have a node_id in the data
array, create node links for the node_ids that don't currently have a node id, and do nothing
for node_ids that already have a corresponding node_link. This means a update request with
{"data": []} will remove all node_links in this collection
Destroy
        Method:        DELETE
        URL:           /links/self
        Query Params:  <none>
        Body (JSON):   {
                         "data": [{
                           "type": "linked_nodes",   # required
                           "id": <node_id>   # required
                         }]
                       }
        Success:       204

This requires admin permission on the node. This will delete any node_links that have a
corresponding node_id in the request.
This PR also adds tests for the intended behavior of this relationship endpoint.
Changes
The addition of the endpoint, and base classes for one-to-many relationships
Side Effects
None? (easier to interact with node_links via api)

It looks like you haven't added the relationship self link to the collections serializer yet.

I tried to post to the relationship link to add a link to a collection to the list. This failed in the wrong way. It gave a 500 and said that "Pointer to folder 8pnwb already exists. Only one pointer to any given folder allowed". I believe collections won't allow a link to another collection by way of giving a 404 (because a collection can't be acquired through a /nodes/ endpoint), which is the desired behavior here.

Don't forget to update the description of the PR to match the COSDev standards and link to the related issue.

@brianjgeiger updated PR, but not sure I was ever assigned the ticket for this task, could you point me to it?

Awesome, thanks. Okay, passing this to @sloria. :tada: :penguin: :tada:

This requires both admin permission on the collection, and for the user that is
making the request to be able to read the nodes requested.

Are there tests for creating/updating a collection that the user does not have admin permissions on?

@sloria yes

@sloria, well I believe so for creating a collection. I know so for updating a collection via this endpoint, as it cannot create collections.

Stopping my review here because I need to debug and issue on prod. Go ahead and resolve my most recent comments, and I will continue when I am done with the issue I'm working on.

Pass finished.

Responded, back to @sloria

Pass finished.

@sloria should be good now!

Restarted the build; Travis looks to be having a period of slow performance, so the build may take longer than usual.

Bleh, travis failed again on installing requirements. Restarted again.
In the meantime, can you address https://github.com/CenterForOpenScience/osf.io/pull/4864/files#r50182798 ? I don't see it as a blocker--it can go in a follow-up PR if Travis starts cooperating and allows this to get merged--but it would be good to have those tests before this feature is released in 0.63.0.

Travis is green! In the interest of moving this forward for dashboard work, I'm going to go ahead and merge this. I've created a ticket for the additional tests here: https://openscience.atlassian.net/browse/OSF-5579 .


explorer: object version number in transaction page

adds a tooltip component in ui
displays the object version in a tooltip in transaction details page
uses the same animation as the dapp status popup in wallet

https://user-images.githubusercontent.com/10210143/199252891-233524ca-190f-4e1b-b095-4daed8411968.mov
https://user-images.githubusercontent.com/10210143/199252894-0dd8babb-4a1f-44a5-9391-6496b246eea2.mov
closes APPS-80

@pchrysochoidis the interaction does not behave like the figma spec we discussed in Slack - to only show the copy icon on hover. Are we tracking that work in a different PR?

Hey @mystie711 I think we should implement that with another PR/ticket. This one was only for adding the version number. Do you mind adding a ticket (I do think we have one now) for making copy icon appear on hover? (I assume it should change across the app right? not only in transactions page)

Okay. I will create a new ticket in JIRA for that @pchrysochoidis


"Ciritei", "Doamna" and "Văleni" are listed in the drop-down menu

Description:
"Ciritei", "Doamna" and "Văleni" are listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Ciritei" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Ciritei, NEAMȚ (PIATRA-NEAMȚ)".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Type "Doamna" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Doamna, NEAMȚ (PIATRA-NEAMȚ)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Type "Văleni" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Văleni, NEAMȚ (PIATRA-NEAMȚ)".


[NFC] Add missing header guards.

Added an extra line after #endif at the end of each file. But it seems format.sh removes it.

We do need to add extra line at very end of each file to pass the CI format check. So adding this extra line is for same reason?

@iq136boy ,yes, the extra line was added to pass the format check

LGTM.  This works and #pragma once would also work.

If i remember correctly, the copyright year will only need to be updated if the file was written in that year (not modified), otherwise it should be left as is. @junliume can confirm this

@alexandraBara @xinlipn @JehandadKhan
Standard notice for new file:
Copyright(C) 2023 Advanced Micro Devices, Inc. All rights reserved.

Standard notice for modified AMD files:
Copyright (C) [year development began – year of most recent substantive update] Advanced Micro Devices, Inc. All rights Reserved.

If i remember correctly, the copyright year will only need to be updated if the file was written in that year (not modified), otherwise it should be left as is. @junliume can confirm this

@alexandraBara , thanks for pick this up. Confirmed with Jun and these indeed don't need to be changed. I have reverted these changes.

@xinlipn a more modern method would be to just add
# pragma once

to the top of the file.

@JehandadKhan thanks for the comments. There's a discussion about the difference between #pragma once vs include guards as below. Not sure if this would be a concern, but #pragma once may affect portability since not all compilers support it. I'll update with #pragma once shortly
https://stackoverflow.com/questions/1143936/pragma-once-vs-include-guards

@xinlipn @JehandadKhan Yes we are seeing the side effects now:
 /tmp/comgr-f62e8f/input/MIOpenDropout.cl:7575:9: error: #pragma once in main file [-Werror,-Wpragma-once-outside-header]

Maybe the legacy way is also safer, let's revert to the old way.

@xinlipn @JehandadKhan Yes we are seeing the side effects now:
 /tmp/comgr-f62e8f/input/MIOpenDropout.cl:7575:9: error: #pragma once in main file [-Werror,-Wpragma-once-outside-header]

Maybe the legacy way is also safer, let's revert to the old way.

Looks like it, on the host side we have not seen this issue with gcc or clang.

@JehandadKhan @junliume reverted  #pragma once to include guards


[SSoC 2.0] Language Translator Front-end Project

Describe the project
Title - Language Translator
Tech using - HTML, CSS and JS

This project can translate any entered content into the selected language.
This project can also help to copy the converted text into clipboard.

Issue Type:

[x] New Project

Additional context
This will help user to convert any paragraph of other language and convert your readable language for read and understand
Screenshots

@TusharKesarwani @zugzwang03 @harshit-paneri please assign this project to me


cmd/go: test fails with the latest tip version

Please answer these questions before submitting your issue. Thanks!
What did you do?
Tried to rebuild from the latest tip version of source code with all.bash
What did you expect to see?
All tests pass.
What did you see instead?
$ git rev-parse HEAD
2140975ebde164ea1eaa70fc72775c03567f2bc9

cmd/go failed at test:
ok  	cmd/fix	14.568s
go test proxy starting
go test proxy running at GOPROXY=http://<IP_ADDRESS>:62728/mod
go proxy: no archive rsc.io v1.5.0
go proxy: no archive example.com/split/subpkg v1.0.0
go proxy: no archive golang.org/x/text/language 14c0d48
go proxy: no archive golang.org/x/text/language 14c0d48
--- FAIL: TestScript (0.01s)
    --- FAIL: TestScript/mod_why (1.93s)
        script_test.go:182:
            > env GO111MODULE=on
            > go list -test all
            [stdout]
            mymodule/x
            mymodule/y
            mymodule/z
            [stderr]
            go: finding rsc.io/quote v1.5.2
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            go: downloading rsc.io/quote v1.5.2
            go: extracting rsc.io/quote v1.5.2
            can't load package: package rsc.io/quote: unknown import path "rsc.io/quote": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            can't load test package: package rsc.io/quote: unknown import path "rsc.io/quote": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_why.txt:3: unexpected command failure

    --- FAIL: TestScript/mod_verify (3.24s)
        script_test.go:182:
            # With good go.sum, verify succeeds by avoiding download. (0.756s)
            # With bad go.sum, verify succeeds by avoiding download. (0.103s)
            # With bad go.sum, sync (which must download) fails.
            # Even if the bad sum is in the old legacy go.modverify file. (0.235s)
            # With good go.sum, sync works (and moves go.modverify to go.sum). (1.306s)
            > rm go.sum
            > cp go.sum.good go.modverify
            > go mod tidy
            [stderr]
            go: downloading rsc.io/quote v1.1.0
            go: extracting rsc.io/quote v1.1.0
            > exists<EMAIL_ADDRESS>            > exists<EMAIL_ADDRESS>            FAIL: testdata/script/mod_verify.txt:26<EMAIL_ADDRESS>does not exist

    --- FAIL: TestScript/mod_vendor_build (1.32s)
        script_test.go:182:
            # initial conditions: using sampler v1.3.0, not listed in go.mod. (1.084s)
            > go list -deps
            [stdout]
            rsc.io/quote
            m
            [stderr]
            go: finding rsc.io/quote v1.5.2
            go: downloading rsc.io/quote v1.5.2
            go: extracting rsc.io/quote v1.5.2
            > stdout rsc.io/sampler
            FAIL: testdata/script/mod_vendor_build.txt:5: no match for `rsc.io/sampler` found in stdout

    --- FAIL: TestScript/mod_tidy_sum (2.54s)
        script_test.go:182:
            # go.sum should list directly used modules and dependencies (2.523s)
            > go get<EMAIL_ADDRESS>            [stderr]
            go: finding rsc.io/quote v1.5.2
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            go: downloading rsc.io/quote v1.5.2
            go: extracting rsc.io/quote v1.5.2
            package rsc.io/quote: unknown import path "rsc.io/quote": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_tidy_sum.txt:4: unexpected command failure

    --- FAIL: TestScript/mod_tidy_quote (2.13s)
        script_test.go:182:
            # Check that mod tidy does not introduce repeated
            # require statements when input go.mod has quoted requirements. (2.002s)
            > env GO111MODULE=on
            > go mod tidy
            [stderr]
            go: finding rsc.io/quote v1.5.2
            go: downloading rsc.io/quote v1.5.2
            go: extracting rsc.io/quote v1.5.2
            > grep -count=1 rsc.io/quote go.mod
            [go.mod]
            module x

            go 1.12

            FAIL: testdata/script/mod_tidy_quote.txt:6: no match for `rsc.io/quote` found in go.mod

    --- FAIL: TestScript/mod_tidy_replace (3.04s)
        script_test.go:182:
            # From inside the module, 'go list -m all' should NOT include transitive
            # requirements of modules that have been replaced. (0.094s)
            # From outside the module, 'go list -m all' should include them. (2.047s)
            # 'go list all' should add indirect requirements to satisfy the packages
            # imported from replacement modules. (0.743s)
            > ! grep 'rsc.io/sampler' go.mod
            > ! grep 'golang.org/x/text' go.mod
            > go list all
            [stdout]
            example.com/tidy
            rsc.io/quote/v3
            [stderr]
            go: finding rsc.io/sampler v1.99.99
            go: finding golang.org/x/text v0.3.0
            go: downloading rsc.io/sampler v1.99.99
            go: downloading golang.org/x/text v0.3.0
            go: extracting golang.org/x/text v0.3.0
            go: extracting rsc.io/sampler v1.99.99
            can't load package: not-rsc.io/quote/v3/quote.go:5:2: unknown import path "golang.org/x/text/language": cannot find module providing package golang.org/x/text/language
            can't load package: not-rsc.io/quote/v3/quote.go:4:2: unknown import path "rsc.io/sampler": cannot find module providing package rsc.io/sampler
            [exit status 1]
            FAIL: testdata/script/mod_tidy_replace.txt:22: unexpected command failure

    --- FAIL: TestScript/mod_symlink (1.32s)
        script_test.go:182:
            # 'go list' should resolve modules of imported packages. (1.303s)
            > go list -deps -f '{{.Module}}'
            [stdout]
            <nil>
            golang.org/issue/28107
            [stderr]
            go: finding golang.org/x/text v0.3.0
            go: downloading golang.org/x/text v0.3.0
            go: extracting golang.org/x/text v0.3.0
            > stdout golang.org/x/text
            FAIL: testdata/script/mod_symlink.txt:6: no match for `golang.org/x/text` found in stdout

    --- FAIL: TestScript/mod_test (1.54s)
        script_test.go:182:
            # TODO(bcmills): Convert the 'go test' calls below to 'go list -test' once 'go
            # list' is more sensitive to package loading errors.
            # A test in the module's root package should work. (1.311s)
            > cd a/
            $WORK/gopath/src/a
            > cp go.mod.empty go.mod
            > go test
            [stdout]
            FAIL	example.com/user/a [setup failed]
            [stderr]
            go: finding rsc.io/quote v1.5.2
            go: downloading rsc.io/quote v1.5.2
            go: extracting rsc.io/quote v1.5.2
            # example.com/user/a
            a_test.go:4:8: unknown import path "rsc.io/quote": cannot find module providing package rsc.io/quote
            [exit status 1]
            FAIL: testdata/script/mod_test.txt:9: unexpected command failure

    --- FAIL: TestScript/mod_readonly (2.26s)
        script_test.go:182:
            # -mod=readonly must not resolve missing modules nor update go.mod
            #
            # TODO(bcmills): 'go list' should suffice, but today it does not fail due to
            # unresolved imports. When that is fixed, use 'go list' instead of 'go list all'. (0.619s)
            # update go.mod - go get allowed (1.622s)
            > go get rsc.io/quote
            [stderr]
            go: finding rsc.io/quote v1.5.2
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            go: downloading rsc.io/quote v1.5.2
            go: extracting rsc.io/quote v1.5.2
            package rsc.io/quote: unknown import path "rsc.io/quote": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_readonly.txt:15: unexpected command failure

    --- FAIL: TestScript/mod_replace (2.28s)
        script_test.go:182:
            # Make sure the test builds without replacement. (2.211s)
            > go build -o a1.exe .
            [stderr]
            go: finding rsc.io/quote/v3 v3.0.0
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            go: downloading rsc.io/quote/v3 v3.0.0
            go: extracting rsc.io/quote/v3 v3.0.0
            main.go:5:2: unknown import path "rsc.io/quote/v3": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_replace.txt:6: unexpected command failure

    --- FAIL: TestScript/mod_domain_root (1.64s)
        script_test.go:182:
            # Module paths that are domain roots should resolve.
            # (example.com not example.com/something) (0.719s)
            > env GO111MODULE=on
            > go build
            [stderr]
            go: finding example.com v1.0.0
            go: downloading example.com v1.0.0
            go: extracting example.com v1.0.0
            x.go:2:8: unknown import path "example.com": cannot find module providing package example.com
            [exit status 1]
            FAIL: testdata/script/mod_domain_root.txt:5: unexpected command failure

    --- FAIL: TestScript/mod_query_exclude (2.50s)
        script_test.go:182:
            # get excluded version (0.134s)
            # get non-excluded version (2.147s)
            > cp go.mod1 go.mod
            > go get<EMAIL_ADDRESS>            [stderr]
            go: finding rsc.io/quote v1.5.1
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            go: downloading rsc.io/quote v1.5.1
            go: extracting rsc.io/quote v1.5.1
            package rsc.io/quote: unknown import path "rsc.io/quote": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_query_exclude.txt:10: unexpected command failure

    --- FAIL: TestScript/mod_outside (3.03s)
        script_test.go:182:
            # This script tests commands in module mode outside of any module.
            #
            # First, ensure that we really are in module mode, and that we really don't have
            # a go.mod file. (0.049s)
            # 'go list' without arguments implicitly operates on the current directory,
            # which is not in a module. (0.093s)
            # 'go list' in the working directory should fail even if there is a a 'package
            # main' present: without a main module, we do not know its package path. (0.045s)
            # 'go list all' lists the transitive import graph of the main module,
            # which is empty if there is no main module. (0.092s)
            # 'go list' on standard-library packages should work, since they do not depend
            # on the contents of any module. (1.598s)
            # 'go list -m' with an explicit version should resolve that version. (0.090s)
            # 'go list -m -versions' should succeed even without an explicit version. (0.051s)
            # 'go list -m <mods> all' does not include the dependencies of <mods> in the computation of 'all'. (0.087s)
            # 'go clean' should skip the current directory if it isn't in a module. (0.045s)
            # 'go mod graph' should not display anything, since there are no active modules. (0.059s)
            # 'go mod why' should report that nothing is a dependency. (0.117s)
            # 'go mod edit', 'go mod tidy', and 'go mod fmt' should fail:
            # there is no go.mod file to edit. (0.118s)
            # 'go mod download' should download exactly the requested module without dependencies. (0.424s)
            > rm -r $GOPATH/pkg/mod/cache/download/example.com
            > go mod download<EMAIL_ADDRESS>            [stderr]
            go: finding example.com/printversion v1.0.0
<EMAIL_ADDRESS>rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_outside.txt:82: unexpected command failure

    --- FAIL: TestScript/mod_multirepo (0.86s)
        script_test.go:182:
            # initial standalone module should use no downloaded modules (0.088s)
            # v2 import should use a downloaded module
            # both without an explicit go.mod entry ... (0.607s)
            > cp tmp/use_v2.go x.go
            > go list -deps -f {{.Dir}}
            [stdout]
            $WORK/gopath/src
            [stderr]
            go: finding rsc.io/quote/v2 v2.0.1
            go: downloading rsc.io/quote/v2 v2.0.1
            go: extracting rsc.io/quote/v2 v2.0.1
            > stdout<EMAIL_ADDRESS>            FAIL: testdata/script/mod_multirepo.txt:11: no match for<EMAIL_ADDRESS>found in stdout

    --- FAIL: TestScript/mod_modinfo (1.09s)
        script_test.go:182:
            # Test to ensure runtime/debug.ReadBuildInfo parses
            # the modinfo embedded in a binary by the go tool
            # when module is enabled. (1.084s)
            > env GO111MODULE=on
            > cd x
            $WORK/gopath/src/x
            > go mod edit<EMAIL_ADDRESS>            > go mod edit -replace=rsc.io/quote<EMAIL_ADDRESS>            > go run main.go
            [stderr]
            go: finding rsc.io/quote v1.0.0
            go: downloading rsc.io/quote v1.0.0
            go: extracting rsc.io/quote v1.0.0
            main.go:4:8: unknown import path "rsc.io/quote": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_modinfo.txt:10: unexpected command failure

    --- FAIL: TestScript/mod_list_dir (1.92s)
        script_test.go:182:
            # go list with path to directory should work (1.905s)
            > env GO111MODULE=off
            > go list -f '{{.ImportPath}}' $GOROOT/src/math
            [stdout]
            math
            > stdout ^math$
            > env GO111MODULE=on
            > go list -f '{{.ImportPath}}' $GOROOT/src/math
            [stdout]
            math
            [stderr]
            go: finding rsc.io/quote v1.5.2
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            > stdout ^math$
            > go list -f '{{.ImportPath}}' .
            [stdout]
            x
            > stdout ^x$
            > ! go list -f '{{.ImportPath}}'<EMAIL_ADDRESS>            [stderr]
            go: no such directory<EMAIL_ADDRESS>            [exit status 1]
            > stderr '^go: no such<EMAIL_ADDRESS>            > go mod download<EMAIL_ADDRESS>            [stderr]
<EMAIL_ADDRESS>rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_list_dir.txt:14: unexpected command failure

    --- FAIL: TestScript/mod_list (1.89s)
        script_test.go:182:
            # list {{.Dir}} shows main module and go.mod but not not-yet-downloaded dependency dir. (1.160s)
            # list {{.Dir}} shows dependency after download (and go list without -m downloads it) (0.244s)
            > go list -f '{{.Dir}}' rsc.io/quote
            [stderr]
            go: downloading rsc.io/quote v1.5.2
            go: extracting rsc.io/quote v1.5.2
            can't load package: package rsc.io/quote: unknown import path "rsc.io/quote": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_list.txt:9: unexpected command failure

    --- FAIL: TestScript/mod_internal (1.73s)
        script_test.go:182:
            # golang.org/x/internal should be importable from other golang.org/x modules. (0.782s)
            > rm go.mod
            > go mod init golang.org/x/anything
            [stderr]
            go: creating new go.mod: module golang.org/x/anything
            > go build .
            [stderr]
            go: finding golang.org/x/internal v0.1.0
            go: downloading golang.org/x/internal v0.1.0
            go: extracting golang.org/x/internal v0.1.0
            useinternal.go:2:8: unknown import path "golang.org/x/internal/subtle": cannot find module providing package golang.org/x/internal/subtle
            [exit status 1]
            FAIL: testdata/script/mod_internal.txt:6: unexpected command failure

    --- FAIL: TestScript/mod_install_versioned (0.48s)
        script_test.go:182:
            > env GO111MODULE=on
            > go list -f '{{.Target}}' rsc.io/fortune
            [stderr]
            go: finding rsc.io/fortune v1.0.0
            go: downloading rsc.io/fortune v1.0.0
            go: extracting rsc.io/fortune v1.0.0
            can't load package: package rsc.io/fortune: unknown import path "rsc.io/fortune": cannot find module providing package rsc.io/fortune
            [exit status 1]
            FAIL: testdata/script/mod_install_versioned.txt:3: unexpected command failure

    --- FAIL: TestScript/mod_import (2.09s)
        script_test.go:182:
            # latest rsc.io/quote should be v1.5.2 not v1.5.3-pre1 (1.208s)
            > go list
            [stdout]
            x
            [stderr]
            go: finding rsc.io/quote v1.5.2
            go: downloading rsc.io/quote v1.5.2
            go: extracting rsc.io/quote v1.5.2
            > go list -m all
            [stdout]
            x
            > stdout 'rsc.io/quote v1.5.2'
            FAIL: testdata/script/mod_import.txt:6: no match for `rsc.io/quote v1.5.2` found in stdout

    --- FAIL: TestScript/mod_gopkg_unstable (1.67s)
        script_test.go:182:
            > env GO111MODULE=on
            > cp go.mod.empty go.mod
            > go get -d gopkg.in/dummy.v2-unstable
            [stderr]
            go: finding gopkg.in/dummy.v2-unstable v2.0.0
            go: downloading gopkg.in/dummy.v2-unstable v2.0.0
            go: extracting gopkg.in/dummy.v2-unstable v2.0.0
            package gopkg.in/dummy.v2-unstable: unknown import path "gopkg.in/dummy.v2-unstable": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_gopkg_unstable.txt:4: unexpected command failure

    --- FAIL: TestScript/mod_getmode_vendor (2.43s)
        script_test.go:182:
            > env GO111MODULE=on
            > go get -m<EMAIL_ADDRESS>            [stderr]
            go: finding rsc.io/quote v1.5.1
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            > go mod vendor
            [stderr]
            go: downloading rsc.io/quote v1.5.1
            go: extracting rsc.io/quote v1.5.1
            go: no dependencies to vendor
            > env GOPATH=$WORK/empty
            > env GOPROXY=file:///nonexist
            > go list -mod=vendor
            [stdout]
            x
            > go list -mod=vendor -m -f '{{.Path}} {{.Version}} {{.Dir}}' all
            [stdout]
            x  $WORK/gopath/src
            rsc.io/quote v1.5.1 $WORK/gopath/src/vendor/rsc.io/quote
            > stdout '^rsc.io/quote v1.5.1 .*vendor[\\/]rsc.io[\\/]quote$'
            > stdout '^golang.org/x/text v0.0.0.* .*vendor[\\/]golang.org[\\/]x[\\/]text$'
            FAIL: testdata/script/mod_getmode_vendor.txt:11: no match for `^golang.org/x/text v0.0.0.* .*vendor[\\/]golang.org[\\/]x[\\/]text$` found in stdout

    --- FAIL: TestScript/mod_get_upgrade (2.22s)
        script_test.go:182:
            > env GO111MODULE=on
            > go get<EMAIL_ADDRESS>            [stderr]
            go: finding rsc.io/quote v1.1.0
            go: finding rsc.io/quote v1.5.1
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            go: downloading rsc.io/quote v1.5.1
            go: extracting rsc.io/quote v1.5.1
            package rsc.io/quote: unknown import path "rsc.io/quote": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_get_upgrade.txt:3: unexpected command failure

    --- FAIL: TestScript/mod_get_moved (0.30s)
        script_test.go:182:
            # A 'go get' that worked at a previous version should continue to work at that version,
            # even if the package was subsequently moved into a submodule. (0.292s)
            > go mod init example.com/foo
            [stderr]
            go: creating new go.mod: module example.com/foo
            > go get -d<EMAIL_ADDRESS>            [stderr]
            go: finding example.com/split/subpkg v1.0.0
            go: finding example.com/split v1.0.0
            go: downloading example.com/split v1.0.0
            go: extracting example.com/split v1.0.0
            go get<EMAIL_ADDRESS>rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_get_moved.txt:6: unexpected command failure

    --- FAIL: TestScript/mod_get_indirect (5.76s)
        script_test.go:182:
            # get -u should find quote v1.5.2 (3.800s)
            # it should also update x/text later than requested by v1.5.2 (0.047s)
            # importing an empty module root as a package makes it direct.
            # TODO(bcmills): This doesn't seem correct. Fix is in the next change. (0.804s)
            # indirect tag should be removed upon seeing direct import. (0.096s)
            > cp $WORK/tmp/uselang.go x.go
            > go list
            [stdout]
            x
            [stderr]
            go: extracting golang.org/x/text v0.3.0
            > grep 'rsc.io/quote v1.5.2$' go.mod
            > grep 'golang.org/x/text [v0-9a-f\.-]+$' go.mod
            [go.mod]
            module x

            require (
            	golang.org/x/text v0.3.0 // indirect
            	rsc.io/quote v1.5.2
            	rsc.io/sampler v1.99.99 // indirect
            )

            FAIL: testdata/script/mod_get_indirect.txt:24: no match for `golang.org/x/text [v0-9a-f\.-]+$` found in go.mod

    --- FAIL: TestScript/mod_get_incompatible (2.44s)
        script_test.go:182:
            > env GO111MODULE=on
            > go list x
            [stdout]
            x
            [stderr]
            go: finding rsc.io/breaker v2.0.0+incompatible
            go: downloading rsc.io/breaker v2.0.0+incompatible
            go: extracting rsc.io/breaker v2.0.0+incompatible
            > go list -m all
            [stdout]
            x
            > stdout 'rsc.io/breaker v2.0.0\+incompatible'
            FAIL: testdata/script/mod_get_incompatible.txt:5: no match for `rsc.io/breaker v2.0.0\+incompatible` found in stdout

    --- FAIL: TestScript/mod_get_commit (1.76s)
        script_test.go:182:
            # @commit should resolve
            # golang.org/x/text/language@commit should not resolve with -m,
            # because that's not a module path. (0.188s)
            # ... but it should work without -m.
            # because of -d, the compiler should not run (1.188s)
            > go get -d -x golang.org/x/text/language@14c0d48
            [stderr]
            go: finding golang.org/x/text/language 14c0d48
            go: finding golang.org/x/text 14c0d48
            go: downloading golang.org/x/text v0.3.0
            go: extracting golang.org/x/text v0.3.0
            go get golang.org/x/text/language@14c0d48: rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_get_commit.txt:11: unexpected command failure

    --- FAIL: TestScript/mod_get_downgrade (4.26s)
        script_test.go:182:
            # downgrade sampler should downgrade quote (4.097s)
            > go get<EMAIL_ADDRESS>            [stderr]
            go: finding rsc.io/quote v1.5.1
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            go: finding rsc.io/sampler v1.0.0
            go: finding rsc.io/quote v1.5.0
            go: finding rsc.io/quote v1.4.0
            go: downloading rsc.io/sampler v1.0.0
            go: extracting rsc.io/sampler v1.0.0
            package rsc.io/sampler: unknown import path "rsc.io/sampler": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_get_downgrade.txt:4: unexpected command failure

    --- FAIL: TestScript/mod_download (0.32s)
        script_test.go:182:
            # download with version should print nothing (0.301s)
            > go mod download<EMAIL_ADDRESS>            [stderr]
            go: finding rsc.io/quote v1.5.0
<EMAIL_ADDRESS>rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_download.txt:4: unexpected command failure

    --- FAIL: TestScript/mod_doc (2.95s)
        script_test.go:182:
            # go doc should find module documentation (2.932s)
            > env GO111MODULE=on
            > go doc y
            [stdout]
            package y // import "x/y"

            Package y is the next to last package of the alphabet.

            [stderr]
            go: finding rsc.io/quote v1.5.2
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            > stdout 'Package y is.*alphabet'
            > stdout 'import "x/y"'
            > go doc x/y
            [stdout]
            package y // import "x/y"

            Package y is the next to last package of the alphabet.

            > stdout 'Package y is.*alphabet'
            > ! go doc quote.Hello
            [stderr]
            doc: symbol quote is not a type in package x installed in "."
            exit status 1
            [exit status 1]
            > stderr 'doc: symbol quote is not a type' # because quote is not in local cache
            > go list rsc.io/quote # now it is
            [stderr]
            go: downloading rsc.io/quote v1.5.2
            go: extracting rsc.io/quote v1.5.2
            can't load package: package rsc.io/quote: unknown import path "rsc.io/quote": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_doc.txt:12: unexpected command failure

    --- FAIL: TestScript/mod_clean_cache (3.23s)
        script_test.go:182:
            > env GO111MODULE=on
            > go mod download<EMAIL_ADDRESS>            [stderr]
            go: finding rsc.io/quote v1.5.0
<EMAIL_ADDRESS>rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_clean_cache.txt:3: unexpected command failure

    --- FAIL: TestScript/mod_concurrent (3.45s)
        script_test.go:182:
            # Concurrent builds should succeed, even if they need to download modules. (3.238s)
            > go build ./x &
            > go build ./y
            [stderr]
            go: finding golang.org/x/text v0.3.0
            go: finding rsc.io/sampler v1.0.0
            go: downloading rsc.io/sampler v1.0.0
            go: extracting rsc.io/sampler v1.0.0
            y/y.go:3:8: unknown import path "rsc.io/sampler": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_concurrent.txt:5: unexpected command failure

    --- FAIL: TestScript/mod_case_cgo (1.11s)
        script_test.go:182:
            > [!cgo] skip
            > env GO111MODULE=on
            > go get rsc.io/CGO
            [stderr]
            go: finding rsc.io/CGO v1.0.0
            go: downloading rsc.io/CGO v1.0.0
            go: extracting rsc.io/CGO v1.0.0
            package rsc.io/CGO: unknown import path "rsc.io/CGO": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_case_cgo.txt:5: unexpected command failure

    --- FAIL: TestScript/mod_case (1.60s)
        script_test.go:182:
            > env GO111MODULE=on
            > go get rsc.io/QUOTE
            [stderr]
            go: finding rsc.io/QUOTE v1.5.2
            go: finding rsc.io/quote v1.5.2
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            go: downloading rsc.io/QUOTE v1.5.2
            go: extracting rsc.io/QUOTE v1.5.2
            package rsc.io/QUOTE: unknown import path "rsc.io/QUOTE": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_case.txt:3: unexpected command failure

FAIL
FAIL	cmd/go	352.090s

Does this issue reproduce with the latest release (go1.11.2)?
N/A
System details
go version devel +2140975ebd Thu Nov 29 22:23:02 2018 +0000 darwin/amd64
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/yoshiki/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/yoshiki/gocode:/Users/yoshiki/exercises/gpl:/Users/yoshiki/oak"
GOPROXY=""
GORACE=""
GOROOT="/Users/yoshiki/tools/go"
GOTMPDIR=""
GOTOOLDIR="/Users/yoshiki/tools/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
GOROOT/bin/go version: go version devel +2140975ebd Thu Nov 29 22:23:02 2018 +0000 darwin/amd64
GOROOT/bin/go tool compile -V: compile version devel +2140975ebd Thu Nov 29 22:23:02 2018 +0000
uname -v: Darwin Kernel Version 18.2.0: Fri Oct  5 19:41:49 PDT 2018; root:xnu-4903.221.2~2/RELEASE_X86_64
ProductName:	Mac OS X
ProductVersion:	10.14.1
BuildVersion:	18B75
lldb --version: lldb-1<IP_ADDRESS>
  Swift-4.2

Can't seem to reproduce it on linux/amd64.
go version devel +2140975ebd Thu Nov 29 22:23:02 2018 +0000 linux/amd64

Thank you for reporting this issue @YoshikiShibata!
@agnivade thanks for the hint that perhaps it might be on just be on darwin. Even as far as ba2e8f65ab36f145177419c56cc03adf67f0e167 I can reproduce it on darwin.
I'll page @bcmills @rsc @FiloSottile as I see some interesting errors e.g.
$ go test -v -run=TestAccidentalGitCheckout
=== RUN   TestAccidentalGitCheckout
=== PAUSE TestAccidentalGitCheckout
=== CONT  TestAccidentalGitCheckout
--- FAIL: TestAccidentalGitCheckout (1.34s)
    go_test.go:1331: running testgo [get -u vcs-test.golang.org/go/test1-svn-git]
    go_test.go:1331: standard error:
    go_test.go:1331: # cd .; svn checkout https://vcs-test.golang.org/svn/test1-svn-git /var/folders/v3/7z434qpx5v3bw0wh8h2myfpw0000gn/T/gotest859356351/src/vcs-test.golang.org/go/test1-svn-git
        svn: E170013: Unable to connect to a repository at URL 'https://vcs-test.golang.org/svn/test1-svn-git'
        svn: E230001: Server SSL certificate verification failed: issuer is not trusted
        package vcs-test.golang.org/go/test1-svn-git: exit status 1

    go_test.go:1331: testgo failed as expected: exit status 1
    go_test.go:1332: get did not fail for right reason
    go_test.go:1332: pattern src[\\/]vcs-test.* uses git, but parent .*src[\\/]vcs-test.* uses svn not found in standard error
FAIL
exit status 1
FAIL	cmd/go	3.058s

@YoshikiShibata have you tried running go clean -modcache and re-running the tests? I see some "permission denied" errors, so perhaps your cache is not writeable by the current user or somehow corrupted.

Seems no change:
ok  	cmd/fix	11.377s
go test proxy starting
go test proxy running at GOPROXY=http://<IP_ADDRESS>:49645/mod
go proxy: no archive rsc.io v1.5.0
go proxy: no archive example.com/split/subpkg v1.0.0
go proxy: no archive golang.org/x/text/language 14c0d48
go proxy: no archive golang.org/x/text/language 14c0d48
--- FAIL: TestScript (0.00s)
    --- FAIL: TestScript/mod_why (2.10s)
        script_test.go:182:
            > env GO111MODULE=on
            > go list -test all
            [stdout]
            mymodule/x
            mymodule/y
            mymodule/z
            [stderr]
            go: finding rsc.io/quote v1.5.2
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            go: downloading rsc.io/quote v1.5.2
            go: extracting rsc.io/quote v1.5.2
            can't load package: package rsc.io/quote: unknown import path "rsc.io/quote": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            can't load test package: package rsc.io/quote: unknown import path "rsc.io/quote": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_why.txt:3: unexpected command failure

    --- FAIL: TestScript/mod_verify (2.64s)
        script_test.go:182:
            # With good go.sum, verify succeeds by avoiding download. (0.461s)
            # With bad go.sum, verify succeeds by avoiding download. (0.572s)
            # With bad go.sum, sync (which must download) fails.
            # Even if the bad sum is in the old legacy go.modverify file. (0.100s)
            # With good go.sum, sync works (and moves go.modverify to go.sum). (1.236s)
            > rm go.sum
            > cp go.sum.good go.modverify
            > go mod tidy
            [stderr]
            go: downloading rsc.io/quote v1.1.0
            go: extracting rsc.io/quote v1.1.0
            > exists<EMAIL_ADDRESS>            > exists<EMAIL_ADDRESS>            FAIL: testdata/script/mod_verify.txt:26<EMAIL_ADDRESS>does not exist

    --- FAIL: TestScript/mod_vendor_build (1.05s)
        script_test.go:182:
            # initial conditions: using sampler v1.3.0, not listed in go.mod. (0.857s)
            > go list -deps
            [stdout]
            rsc.io/quote
            m
            [stderr]
            go: finding rsc.io/quote v1.5.2
            go: downloading rsc.io/quote v1.5.2
            go: extracting rsc.io/quote v1.5.2
            > stdout rsc.io/sampler
            FAIL: testdata/script/mod_vendor_build.txt:5: no match for `rsc.io/sampler` found in stdout

    --- FAIL: TestScript/mod_tidy_sum (3.01s)
        script_test.go:182:
            # go.sum should list directly used modules and dependencies (2.410s)
            > go get<EMAIL_ADDRESS>            [stderr]
            go: finding rsc.io/quote v1.5.2
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            go: downloading rsc.io/quote v1.5.2
            go: extracting rsc.io/quote v1.5.2
            package rsc.io/quote: unknown import path "rsc.io/quote": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_tidy_sum.txt:4: unexpected command failure

    --- FAIL: TestScript/mod_tidy_quote (1.59s)
        script_test.go:182:
            # Check that mod tidy does not introduce repeated
            # require statements when input go.mod has quoted requirements. (1.367s)
            > env GO111MODULE=on
            > go mod tidy
            [stderr]
            go: finding rsc.io/quote v1.5.2
            go: downloading rsc.io/quote v1.5.2
            go: extracting rsc.io/quote v1.5.2
            > grep -count=1 rsc.io/quote go.mod
            [go.mod]
            module x

            go 1.12

            FAIL: testdata/script/mod_tidy_quote.txt:6: no match for `rsc.io/quote` found in go.mod

    --- FAIL: TestScript/mod_tidy_replace (3.72s)
        script_test.go:182:
            # From inside the module, 'go list -m all' should NOT include transitive
            # requirements of modules that have been replaced. (0.090s)
            # From outside the module, 'go list -m all' should include them. (2.496s)
            # 'go list all' should add indirect requirements to satisfy the packages
            # imported from replacement modules. (1.106s)
            > ! grep 'rsc.io/sampler' go.mod
            > ! grep 'golang.org/x/text' go.mod
            > go list all
            [stdout]
            example.com/tidy
            rsc.io/quote/v3
            [stderr]
            go: finding rsc.io/sampler v1.99.99
            go: finding golang.org/x/text v0.3.0
            go: downloading rsc.io/sampler v1.99.99
            go: downloading golang.org/x/text v0.3.0
            go: extracting rsc.io/sampler v1.99.99
            go: extracting golang.org/x/text v0.3.0
            can't load package: not-rsc.io/quote/v3/quote.go:5:2: unknown import path "golang.org/x/text/language": cannot find module providing package golang.org/x/text/language
            can't load package: not-rsc.io/quote/v3/quote.go:4:2: unknown import path "rsc.io/sampler": cannot find module providing package rsc.io/sampler
            [exit status 1]
            FAIL: testdata/script/mod_tidy_replace.txt:22: unexpected command failure

    --- FAIL: TestScript/mod_test (1.81s)
        script_test.go:182:
            # TODO(bcmills): Convert the 'go test' calls below to 'go list -test' once 'go
            # list' is more sensitive to package loading errors.
            # A test in the module's root package should work. (1.061s)
            > cd a/
            $WORK/gopath/src/a
            > cp go.mod.empty go.mod
            > go test
            [stdout]
            FAIL	example.com/user/a [setup failed]
            [stderr]
            go: finding rsc.io/quote v1.5.2
            go: downloading rsc.io/quote v1.5.2
            go: extracting rsc.io/quote v1.5.2
            # example.com/user/a
            a_test.go:4:8: unknown import path "rsc.io/quote": cannot find module providing package rsc.io/quote
            [exit status 1]
            FAIL: testdata/script/mod_test.txt:9: unexpected command failure

    --- FAIL: TestScript/mod_symlink (1.03s)
        script_test.go:182:
            # 'go list' should resolve modules of imported packages. (0.853s)
            > go list -deps -f '{{.Module}}'
            [stdout]
            <nil>
            golang.org/issue/28107
            [stderr]
            go: finding golang.org/x/text v0.3.0
            go: downloading golang.org/x/text v0.3.0
            go: extracting golang.org/x/text v0.3.0
            > stdout golang.org/x/text
            FAIL: testdata/script/mod_symlink.txt:6: no match for `golang.org/x/text` found in stdout

    --- FAIL: TestScript/mod_replace (2.50s)
        script_test.go:182:
            # Make sure the test builds without replacement. (2.076s)
            > go build -o a1.exe .
            [stderr]
            go: finding rsc.io/quote/v3 v3.0.0
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            go: downloading rsc.io/quote/v3 v3.0.0
            go: extracting rsc.io/quote/v3 v3.0.0
            main.go:5:2: unknown import path "rsc.io/quote/v3": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_replace.txt:6: unexpected command failure

    --- FAIL: TestScript/mod_readonly (2.56s)
        script_test.go:182:
            # -mod=readonly must not resolve missing modules nor update go.mod
            #
            # TODO(bcmills): 'go list' should suffice, but today it does not fail due to
            # unresolved imports. When that is fixed, use 'go list' instead of 'go list all'. (0.736s)
            # update go.mod - go get allowed (1.811s)
            > go get rsc.io/quote
            [stderr]
            go: finding rsc.io/quote v1.5.2
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            go: downloading rsc.io/quote v1.5.2
            go: extracting rsc.io/quote v1.5.2
            package rsc.io/quote: unknown import path "rsc.io/quote": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_readonly.txt:15: unexpected command failure

    --- FAIL: TestScript/mod_query_exclude (2.51s)
        script_test.go:182:
            # get excluded version (0.113s)
            # get non-excluded version (2.327s)
            > cp go.mod1 go.mod
            > go get<EMAIL_ADDRESS>            [stderr]
            go: finding rsc.io/quote v1.5.1
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            go: downloading rsc.io/quote v1.5.1
            go: extracting rsc.io/quote v1.5.1
            package rsc.io/quote: unknown import path "rsc.io/quote": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_query_exclude.txt:10: unexpected command failure

    --- FAIL: TestScript/mod_outside (2.93s)
        script_test.go:182:
            # This script tests commands in module mode outside of any module.
            #
            # First, ensure that we really are in module mode, and that we really don't have
            # a go.mod file. (0.057s)
            # 'go list' without arguments implicitly operates on the current directory,
            # which is not in a module. (0.090s)
            # 'go list' in the working directory should fail even if there is a a 'package
            # main' present: without a main module, we do not know its package path. (0.046s)
            # 'go list all' lists the transitive import graph of the main module,
            # which is empty if there is no main module. (0.087s)
            # 'go list' on standard-library packages should work, since they do not depend
            # on the contents of any module. (1.535s)
            # 'go list -m' with an explicit version should resolve that version. (0.087s)
            # 'go list -m -versions' should succeed even without an explicit version. (0.044s)
            # 'go list -m <mods> all' does not include the dependencies of <mods> in the computation of 'all'. (0.092s)
            # 'go clean' should skip the current directory if it isn't in a module. (0.049s)
            # 'go mod graph' should not display anything, since there are no active modules. (0.044s)
            # 'go mod why' should report that nothing is a dependency. (0.044s)
            # 'go mod edit', 'go mod tidy', and 'go mod fmt' should fail:
            # there is no go.mod file to edit. (0.130s)
            # 'go mod download' should download exactly the requested module without dependencies. (0.610s)
            > rm -r $GOPATH/pkg/mod/cache/download/example.com
            > go mod download<EMAIL_ADDRESS>            [stderr]
            go: finding example.com/printversion v1.0.0
<EMAIL_ADDRESS>rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_outside.txt:82: unexpected command failure

    --- FAIL: TestScript/mod_multirepo (0.82s)
        script_test.go:182:
            # initial standalone module should use no downloaded modules (0.092s)
            # v2 import should use a downloaded module
            # both without an explicit go.mod entry ... (0.542s)
            > cp tmp/use_v2.go x.go
            > go list -deps -f {{.Dir}}
            [stdout]
            $WORK/gopath/src
            [stderr]
            go: finding rsc.io/quote/v2 v2.0.1
            go: downloading rsc.io/quote/v2 v2.0.1
            go: extracting rsc.io/quote/v2 v2.0.1
            > stdout<EMAIL_ADDRESS>            FAIL: testdata/script/mod_multirepo.txt:11: no match for<EMAIL_ADDRESS>found in stdout

    --- FAIL: TestScript/mod_modinfo (1.08s)
        script_test.go:182:
            # Test to ensure runtime/debug.ReadBuildInfo parses
            # the modinfo embedded in a binary by the go tool
            # when module is enabled. (1.072s)
            > env GO111MODULE=on
            > cd x
            $WORK/gopath/src/x
            > go mod edit<EMAIL_ADDRESS>            > go mod edit -replace=rsc.io/quote<EMAIL_ADDRESS>            > go run main.go
            [stderr]
            go: finding rsc.io/quote v1.0.0
            go: downloading rsc.io/quote v1.0.0
            go: extracting rsc.io/quote v1.0.0
            main.go:4:8: unknown import path "rsc.io/quote": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_modinfo.txt:10: unexpected command failure

    --- FAIL: TestScript/mod_list_dir (2.95s)
        script_test.go:182:
            # go list with path to directory should work (2.941s)
            > env GO111MODULE=off
            > go list -f '{{.ImportPath}}' $GOROOT/src/math
            [stdout]
            math
            > stdout ^math$
            > env GO111MODULE=on
            > go list -f '{{.ImportPath}}' $GOROOT/src/math
            [stdout]
            math
            [stderr]
            go: finding rsc.io/quote v1.5.2
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            > stdout ^math$
            > go list -f '{{.ImportPath}}' .
            [stdout]
            x
            > stdout ^x$
            > ! go list -f '{{.ImportPath}}'<EMAIL_ADDRESS>            [stderr]
            go: no such directory<EMAIL_ADDRESS>            [exit status 1]
            > stderr '^go: no such<EMAIL_ADDRESS>            > go mod download<EMAIL_ADDRESS>            [stderr]
<EMAIL_ADDRESS>rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_list_dir.txt:14: unexpected command failure

    --- FAIL: TestScript/mod_list (1.43s)
        script_test.go:182:
            # list {{.Dir}} shows main module and go.mod but not not-yet-downloaded dependency dir. (1.064s)
            # list {{.Dir}} shows dependency after download (and go list without -m downloads it) (0.224s)
            > go list -f '{{.Dir}}' rsc.io/quote
            [stderr]
            go: downloading rsc.io/quote v1.5.2
            go: extracting rsc.io/quote v1.5.2
            can't load package: package rsc.io/quote: unknown import path "rsc.io/quote": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_list.txt:9: unexpected command failure

    --- FAIL: TestScript/mod_internal (0.58s)
        script_test.go:182:
            # golang.org/x/internal should be importable from other golang.org/x modules. (0.564s)
            > rm go.mod
            > go mod init golang.org/x/anything
            [stderr]
            go: creating new go.mod: module golang.org/x/anything
            > go build .
            [stderr]
            go: finding golang.org/x/internal v0.1.0
            go: downloading golang.org/x/internal v0.1.0
            go: extracting golang.org/x/internal v0.1.0
            useinternal.go:2:8: unknown import path "golang.org/x/internal/subtle": cannot find module providing package golang.org/x/internal/subtle
            [exit status 1]
            FAIL: testdata/script/mod_internal.txt:6: unexpected command failure

    --- FAIL: TestScript/mod_install_versioned (1.74s)
        script_test.go:182:
            > env GO111MODULE=on
            > go list -f '{{.Target}}' rsc.io/fortune
            [stderr]
            go: finding rsc.io/fortune v1.0.0
            go: downloading rsc.io/fortune v1.0.0
            go: extracting rsc.io/fortune v1.0.0
            can't load package: package rsc.io/fortune: unknown import path "rsc.io/fortune": cannot find module providing package rsc.io/fortune
            [exit status 1]
            FAIL: testdata/script/mod_install_versioned.txt:3: unexpected command failure

    --- FAIL: TestScript/mod_import (1.67s)
        script_test.go:182:
            # latest rsc.io/quote should be v1.5.2 not v1.5.3-pre1 (1.496s)
            > go list
            [stdout]
            x
            [stderr]
            go: finding rsc.io/quote v1.5.2
            go: downloading rsc.io/quote v1.5.2
            go: extracting rsc.io/quote v1.5.2
            > go list -m all
            [stdout]
            x
            > stdout 'rsc.io/quote v1.5.2'
            FAIL: testdata/script/mod_import.txt:6: no match for `rsc.io/quote v1.5.2` found in stdout

    --- FAIL: TestScript/mod_gopkg_unstable (1.85s)
        script_test.go:182:
            > env GO111MODULE=on
            > cp go.mod.empty go.mod
            > go get -d gopkg.in/dummy.v2-unstable
            [stderr]
            go: finding gopkg.in/dummy.v2-unstable v2.0.0
            go: downloading gopkg.in/dummy.v2-unstable v2.0.0
            go: extracting gopkg.in/dummy.v2-unstable v2.0.0
            package gopkg.in/dummy.v2-unstable: unknown import path "gopkg.in/dummy.v2-unstable": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_gopkg_unstable.txt:4: unexpected command failure

    --- FAIL: TestScript/mod_getmode_vendor (2.11s)
        script_test.go:182:
            > env GO111MODULE=on
            > go get -m<EMAIL_ADDRESS>            [stderr]
            go: finding rsc.io/quote v1.5.1
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            > go mod vendor
            [stderr]
            go: downloading rsc.io/quote v1.5.1
            go: extracting rsc.io/quote v1.5.1
            go: no dependencies to vendor
            > env GOPATH=$WORK/empty
            > env GOPROXY=file:///nonexist
            > go list -mod=vendor
            [stdout]
            x
            > go list -mod=vendor -m -f '{{.Path}} {{.Version}} {{.Dir}}' all
            [stdout]
            x  $WORK/gopath/src
            rsc.io/quote v1.5.1 $WORK/gopath/src/vendor/rsc.io/quote
            > stdout '^rsc.io/quote v1.5.1 .*vendor[\\/]rsc.io[\\/]quote$'
            > stdout '^golang.org/x/text v0.0.0.* .*vendor[\\/]golang.org[\\/]x[\\/]text$'
            FAIL: testdata/script/mod_getmode_vendor.txt:11: no match for `^golang.org/x/text v0.0.0.* .*vendor[\\/]golang.org[\\/]x[\\/]text$` found in stdout

    --- FAIL: TestScript/mod_get_upgrade (2.59s)
        script_test.go:182:
            > env GO111MODULE=on
            > go get<EMAIL_ADDRESS>            [stderr]
            go: finding rsc.io/quote v1.1.0
            go: finding rsc.io/quote v1.5.1
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            go: downloading rsc.io/quote v1.5.1
            go: extracting rsc.io/quote v1.5.1
            package rsc.io/quote: unknown import path "rsc.io/quote": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_get_upgrade.txt:3: unexpected command failure

    --- FAIL: TestScript/mod_get_moved (0.40s)
        script_test.go:182:
            # A 'go get' that worked at a previous version should continue to work at that version,
            # even if the package was subsequently moved into a submodule. (0.388s)
            > go mod init example.com/foo
            [stderr]
            go: creating new go.mod: module example.com/foo
            > go get -d<EMAIL_ADDRESS>            [stderr]
            go: finding example.com/split/subpkg v1.0.0
            go: finding example.com/split v1.0.0
            go: downloading example.com/split v1.0.0
            go: extracting example.com/split v1.0.0
            go get<EMAIL_ADDRESS>rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_get_moved.txt:6: unexpected command failure

    --- FAIL: TestScript/mod_get_indirect (5.47s)
        script_test.go:182:
            # get -u should find quote v1.5.2 (3.765s)
            # it should also update x/text later than requested by v1.5.2 (0.071s)
            # importing an empty module root as a package makes it direct.
            # TODO(bcmills): This doesn't seem correct. Fix is in the next change. (1.042s)
            # indirect tag should be removed upon seeing direct import. (0.406s)
            > cp $WORK/tmp/uselang.go x.go
            > go list
            [stdout]
            x
            [stderr]
            go: extracting golang.org/x/text v0.3.0
            > grep 'rsc.io/quote v1.5.2$' go.mod
            > grep 'golang.org/x/text [v0-9a-f\.-]+$' go.mod
            [go.mod]
            module x

            require (
            	golang.org/x/text v0.3.0 // indirect
            	rsc.io/quote v1.5.2
            	rsc.io/sampler v1.99.99 // indirect
            )

            FAIL: testdata/script/mod_get_indirect.txt:24: no match for `golang.org/x/text [v0-9a-f\.-]+$` found in go.mod

    --- FAIL: TestScript/mod_get_incompatible (2.76s)
        script_test.go:182:
            > env GO111MODULE=on
            > go list x
            [stdout]
            x
            [stderr]
            go: finding rsc.io/breaker v2.0.0+incompatible
            go: downloading rsc.io/breaker v2.0.0+incompatible
            go: extracting rsc.io/breaker v2.0.0+incompatible
            > go list -m all
            [stdout]
            x
            > stdout 'rsc.io/breaker v2.0.0\+incompatible'
            FAIL: testdata/script/mod_get_incompatible.txt:5: no match for `rsc.io/breaker v2.0.0\+incompatible` found in stdout

    --- FAIL: TestScript/mod_get_commit (1.68s)
        script_test.go:182:
            # @commit should resolve
            # golang.org/x/text/language@commit should not resolve with -m,
            # because that's not a module path. (0.404s)
            # ... but it should work without -m.
            # because of -d, the compiler should not run (1.050s)
            > go get -d -x golang.org/x/text/language@14c0d48
            [stderr]
            go: finding golang.org/x/text/language 14c0d48
            go: finding golang.org/x/text 14c0d48
            go: downloading golang.org/x/text v0.3.0
            go: extracting golang.org/x/text v0.3.0
            go get golang.org/x/text/language@14c0d48: rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_get_commit.txt:11: unexpected command failure

    --- FAIL: TestScript/mod_get_downgrade (4.16s)
        script_test.go:182:
            # downgrade sampler should downgrade quote (3.977s)
            > go get<EMAIL_ADDRESS>            [stderr]
            go: finding rsc.io/quote v1.5.1
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            go: finding rsc.io/sampler v1.0.0
            go: finding rsc.io/quote v1.5.0
            go: finding rsc.io/quote v1.4.0
            go: downloading rsc.io/sampler v1.0.0
            go: extracting rsc.io/sampler v1.0.0
            package rsc.io/sampler: unknown import path "rsc.io/sampler": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_get_downgrade.txt:4: unexpected command failure

    --- FAIL: TestScript/mod_download (0.51s)
        script_test.go:182:
            # download with version should print nothing (0.498s)
            > go mod download<EMAIL_ADDRESS>            [stderr]
            go: finding rsc.io/quote v1.5.0
<EMAIL_ADDRESS>rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_download.txt:4: unexpected command failure

    --- FAIL: TestScript/mod_domain_root (1.00s)
        script_test.go:182:
            # Module paths that are domain roots should resolve.
            # (example.com not example.com/something) (0.986s)
            > env GO111MODULE=on
            > go build
            [stderr]
            go: finding example.com v1.0.0
            go: downloading example.com v1.0.0
            go: extracting example.com v1.0.0
            x.go:2:8: unknown import path "example.com": cannot find module providing package example.com
            [exit status 1]
            FAIL: testdata/script/mod_domain_root.txt:5: unexpected command failure

    --- FAIL: TestScript/mod_doc (3.16s)
        script_test.go:182:
            # go doc should find module documentation (3.018s)
            > env GO111MODULE=on
            > go doc y
            [stdout]
            package y // import "x/y"

            Package y is the next to last package of the alphabet.

            [stderr]
            go: finding rsc.io/quote v1.5.2
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            > stdout 'Package y is.*alphabet'
            > stdout 'import "x/y"'
            > go doc x/y
            [stdout]
            package y // import "x/y"

            Package y is the next to last package of the alphabet.

            > stdout 'Package y is.*alphabet'
            > ! go doc quote.Hello
            [stderr]
            doc: symbol quote is not a type in package x installed in "."
            exit status 1
            [exit status 1]
            > stderr 'doc: symbol quote is not a type' # because quote is not in local cache
            > go list rsc.io/quote # now it is
            [stderr]
            go: downloading rsc.io/quote v1.5.2
            go: extracting rsc.io/quote v1.5.2
            can't load package: package rsc.io/quote: unknown import path "rsc.io/quote": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_doc.txt:12: unexpected command failure

    --- FAIL: TestScript/mod_concurrent (2.62s)
        script_test.go:182:
            # Concurrent builds should succeed, even if they need to download modules. (2.464s)
            > go build ./x &
            > go build ./y
            [stderr]
            go: finding rsc.io/sampler v1.0.0
            go: finding golang.org/x/text v0.3.0
            go: downloading rsc.io/sampler v1.0.0
            go: extracting rsc.io/sampler v1.0.0
            y/y.go:3:8: unknown import path "rsc.io/sampler": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_concurrent.txt:5: unexpected command failure

    --- FAIL: TestScript/mod_clean_cache (1.44s)
        script_test.go:182:
            > env GO111MODULE=on
            > go mod download<EMAIL_ADDRESS>            [stderr]
            go: finding rsc.io/quote v1.5.0
<EMAIL_ADDRESS>rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_clean_cache.txt:3: unexpected command failure

    --- FAIL: TestScript/mod_case_cgo (2.33s)
        script_test.go:182:
            > [!cgo] skip
            > env GO111MODULE=on
            > go get rsc.io/CGO
            [stderr]
            go: finding rsc.io/CGO v1.0.0
            go: downloading rsc.io/CGO v1.0.0
            go: extracting rsc.io/CGO v1.0.0
            package rsc.io/CGO: unknown import path "rsc.io/CGO": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_case_cgo.txt:5: unexpected command failure

    --- FAIL: TestScript/mod_case (2.70s)
        script_test.go:182:
            > env GO111MODULE=on
            > go get rsc.io/QUOTE
            [stderr]
            go: finding rsc.io/QUOTE v1.5.2
            go: finding rsc.io/quote v1.5.2
            go: finding rsc.io/sampler v1.3.0
            go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
            go: downloading rsc.io/QUOTE v1.5.2
            go: extracting rsc.io/QUOTE v1.5.2
            package rsc.io/QUOTE: unknown import path "rsc.io/QUOTE": rename<EMAIL_ADDRESS><EMAIL_ADDRESS>permission denied
            [exit status 1]
            FAIL: testdata/script/mod_case.txt:3: unexpected command failure

FAIL
FAIL	cmd/go	240.094s

Folks, please use <details> blocks for long pastes. This issue is really hard to read.
(I'm going to edit the previous comments to add them.)


[Proposal] Nested objects in ARB files

With larger translation files, organizing them can get quite difficult.
As the ARB files that are used for generating delegates are in JSON format,
we could perhaps use nested JSON objects?
For example:
{
  "nested": {
     "first": "something",
     "second": "something {param} else"
  }
}

could become String get nestedFirst => _nested["first"] where _nested is a Map<String,String> that is filled with Intl.message and siblings.
In essence, we add an extra parsing case for a Map to the delegate generation.

Hi @navaronbracke
Thanks for the proposal.
It would diverge from ARB file structure specification so I think we shouldn't go that way for now.
Could you share what particularly is difficult in your case in organizing ARB files?
Maybe there is another solution to it.

Well, in my case there are a lot of strings like the following:
  "RideAttendeeScanningProcessScanLabel": "Scan",
  "RideAttendeeScanningProcessAddMembersLabel": "By Hand",
  "RideAttendeeScanningPreparingScan": "Preparing Scan",
  "RideAttendeeScanningNoMembers": "Cannot start a scan, there are no riders",
  "RideAttendeeScanningGoBackToDetailPage": "Return to detail page",
  "RideAttendeeScanningPermissionDenied": "Scan aborted, permission was denied.",
  "RideAttendeeScanningPermissionDeniedDescription" : "Scanning requires permission to use your location.",
  "RideAttendeeScanningBluetoothDisabled": "Scan aborted, Bluetooth is disabled",
  "RideAttendeeScanningGoToSettings": "Go to Settings",
  "RideAttendeeScanningRetryScan": "Retry Scan",
  "RideAttendeeScanningSkipScan": "Skip Scan",
  "RideAttendeeScanningContinue": "Continue",
  "RideAttendeeScanningManualSelectionEmptyList": "There are no riders to choose from",
  "RideAttendeeScanningDeviceWithMultiplePossibleOwnersLabel": "{amount} riders have a device with this name",
  "RideAttendeeScanningUnresolvedOwnersListTooltip": "Some scanned devices have multiple possible owners. You can select the attending owners here.",

A lot of these strings have a key that starts with the same prefix RideAttendeeScanning, it would be convenient if I could reduce duplication by using the method as described above.

I see. Thanks for the info.
Maybe you could use abbreviated prefixes if that bothers you.
Will close the ticket for now and reopen in the future if we come back to this topic.

Maybe this issue can help to organize by sections

This would be a great feature... I am having the same issues

since .arb files are used in localizations in flutter I think this is a core feature as any kind of medium to large applications will have hundreds of keys and differentiating them by a prefix in the key name is not optimal in any case , please reopen this issue .


fix: add processed sample paths to mapping

Description
Add the paths to the processed subset of samples to the mapping function in get_library_type.py, so that STAR makes use of them instead of the original (unprocessed) samples, when aligning to determinate the mate relationship.
Fixes #149
Type of change

[X] Bug fix (non-breaking change which fixes an issue)

Checklist
Please carefully read these items and tick them off if the statements are true
or do not apply.

[X] I have performed a self-review of my own code
[X] My code follows the existing coding style, lints and generates no new
warnings
[X] I have added type annotations to all function/method signatures, and I
have added type annotations for any local variables that are non-trivial,
potentially ambiguous or might otherwise benefit from explicit typing.
[X] I have commented my code in hard-to-understand areas
[X] I have added ["Google-style docstrings"] to all new modules, classes,
methods/functions or updated previously existing ones
[X] I have added tests that prove my fix is effective or that my feature
works
[X] New and existing unit tests pass locally with my changes and I have not
reduced the code coverage relative to the previous state
[X] I have updated any sections of the app's documentation that are affected
by the proposed changes

If for some reason you are unable to tick off all boxes, please leave a
comment explaining the issue you are facing so that we can work on it
together.

Hmm, coverage test is failing. Maybe you need to update the unit tests (or add one)?

I'm not sure why, the detailed coverage run says 100% (also for the PR). Can it be rerun?

Really weird. And no, I don't know how to rerun it without rerunning all the tests. Well, I think I'll just merge it then. If it persists, we can still investigate


Migrates change_url_modal.jsx to be pure and use Redux

Summary
This PR migrates change_url_modal.jsx to be pure and use Redux. It also cleans up a bunch of code surrounding new_channel_modal.jsx as I found most of this flow to be outdated and or broken which I needed to fix first to test change_url_modal.jsx.

Changed Component to PureComponent
Replaced old .bind(this) syntax with corresponding () => syntax.
Moved PropTypes to inside class and documented them
Removed calling this.ref.urlinput.select() on input DOM node as this.ref.urlinput was null inside componentDidUpdate and removed componentDidUpdate since we don't need it anymore. I'm not even sure why there was this.ref.urlinput.select() I assume to select the input but this wasn't working. CC: @jwilander
Removed ReactDOM.findDOMNode as its not advised by the linter and will be deprecated eventually when you can use the ref node directly instead
Changed doSubmit to onSubmit to be consistent
Moved change_url_modal.jsx to its own folder
Removed SHOW_EDIT_URL_THEN_COMPLETE because this is redundant as new_channel_modal.jsx  is already checking to see that the channel name is of length > 2 i.e. https://github.com/mattermost/mattermost-webapp/blob/b28ae6e6fc4e7458171939eb20a1c5cf36d6cae9/components/new_channel_modal/new_channel_modal.jsx#L130-L132
Fix enterKeyDown inside new_channel_modal.jsx from blocking enterKeyDown in the change_url_modal.jsx. I got rid of the document. addEventListener   inside new_channel_modal.jsx and now only check for key down on the <input> in which it was necessary.
Updated Jest snapshots

Ticket Link
https://github.com/mattermost/mattermost-server/issues/7658
Checklist

[x] Convert to Pure Component
[x] Convert to use Redux
[x] Fix failing tests
[x] Write tests for ChangeUrlModal
[ ] Write tests for NewChannelFlow
[ ] Ran make check-style to check for style errors (required for all pull requests)
[ ] Ran make test to ensure unit and component tests passed
[ ] Added or updated unit tests (required for all new features)
[ ] Has server changes (please link)
[ ] Has redux changes (please link)
[ ] Has UI changes
[ ] Includes text changes and localization file (.../i18n/en.json) updates
[ ] Touches critical sections of the codebase (auth, posting, etc.)

Also, you have a failing test. You may run make test to check it locally.

@saturninoabril I fixed your requested changes. Thank you! I still need to writes tests for: ChangeUrlModal and NewChannelFlow.

@saturninoabril Fixed your last request. Thank you for pointing that out I was wondering why it was not working. ⭐

@watadarkstar Looks good to me. Let me know if you still plan to submit test for NewChannelFlow. Thanks!

@saturninoabril Yup I am writing the tests right now. Will let you know when I am done hopefully by the latest EOD.

Cool, thanks!

@saturninoabril Wrote tests and did a whole bunch of cleanup in my last commit for NewChannelFlow https://github.com/mattermost/mattermost-webapp/pull/464/commits/5c9454bb6566bb1111495f7a97f9c68d7395f338 . Give it a review and this should be good to merge!

@saturninoabril the jenkins build is not working its been going on for an hour - could you restart it?


WIP: Use new storage.Appender Append() instead of Add & AddFast

WIP: Probably still fails
Closes #3812

[ ] I added CHANGELOG entry for this change.
[x] Change is not relevant to the end user.

Changes
Update to latest Prometheus to use the new storage.Appener interface with Append() and removed Add() & AddFast()
Verification
Tests should pass for the most part - we still need to benchmark all of it!

Ran the new benchmark BenchmarkMultiTSDB (see PR) on both branches, main and this one.
 go test -bench=BenchmarkMultiTSDB -count=10 -benchtime=10000000x ./pkg/receive > /tmp/add.txt    #main
 go test -bench=BenchmarkMultiTSDB -count=10 -benchtime=10000000x ./pkg/receive > /tmp/append.txt #metalmatze:appender-append

Here are the benchstat results:
benchstat /tmp/add.txt /tmp/append.txt
name          old time/op    new time/op    delta
MultiTSDB-24     226ns ± 4%     219ns ± 4%  -2.85%  (p=0.003 n=10+9)

name          old alloc/op   new alloc/op   delta
MultiTSDB-24      171B ± 0%      171B ± 0%    ~     (all equal)

name          old allocs/op  new allocs/op  delta
MultiTSDB-24      0.00           0.00         ~     (all equal)

Looking at it from this benchmark nothing drastically changed, time got slightly better but probably normally not noticeable.

Is this non WIP, right?

Yup, not WIP anymore. I applied your suggestion and we're ready to merge!


iOS: add capability to publish notifications

Why's this low prio, shouldn't it be high? Feels like a very necessary feature (yes I do know about the shortcuts, but that's very hacky), especially for those coming from PushBullet as the IPA doesn't support newer iOS releases, and is hard to decrypt without an old device, unless you do some hacky stuff to it.


Accessibility: Follow Keyboard Focus

This relates to #19
Perhaps the most important thing for screen reader users i found was the ability for keyboard focus to do the expected thing. Getting that order correct matters a lot. If you run surge and shift click on the menu you will see "developer options" and theres a focus debugger in there which red highlights and lets you tab/shift-tab with the UI available, and if you have a console attached it shows you the accessible name
So it would be great if instead of 'mouse over' component melatonin could optionally follow 'focused component'
I do this now by having a FocusChangeListener registered which does this: https://github.com/surge-synthesizer/surge/blob/0ca1e207de22407e4c12eb9f228f71c617cb6689/src/surge-xt/gui/SurgeGUIEditor.cpp#L6370
but presumably it would be possible to have melatonin selection optionally driven by a focus change listener as opposed to mouse position tracking. So opening this issue just to document that idea. I may hack it in next fortnight or so as i peek at the code.

This would be great — just to confirm, it would basically be a "mode" like "keyboard focus debug mode" that you would toggle on and the inspector would navigate by keyboard vs. mouse?

If you get a PR going, I'll cook up an icon for the header to toggle (this is a figma screenshot, the move toggle and "dog food" aren't yet implemented, unfortunately!).

BTW, I added you as a collaborator, feel free to push branches to the main repo vs. a fork. I believe merging takes approval from me (or one of the other collaborators?)

This would be great — just to confirm, it would basically be a "mode" like "keyboard focus debug mode" that you would toggle on and the inspector would then only navigate by keyboard vs. mouse?

Exactly

Absolutely yes. I struggled a bit with figuring out what internal state to develop also.
Ideally it would work with mouse mode for most devs. I think that's what they want except when accessibility debugging. I'll add a menu to surge to turn on focus debugging which launches melatonin if not there and then makes it launch in focus mode as well as a menu to just launch regular mouse melatonin.
Thank you for merging the starting point!


Http Error: Not found even though xml file exists

      - name: debug
        run: |
          cp ${{ github.workspace }}/spring-api-gateway/build/reports/jacoco/test/jacocoTestReport.xml ${{ github.workspace }}/jacocoTestReport.xml

      - name: Add codecoverage to PR
        id: jacoco
        uses: madrapps/jacoco-report@7a334255fbce42f385d7567c25d986a9c62e2971
        with:
          title: Jacoco Code Coverage
          update-comment: true
          paths: ${{ github.workspace }}/jacocoTestReport.xml
          token: ${{ secrets.TOKEN }}
          min-coverage-overall: 75
          min-coverage-changed-files: 75
          debug-mode: true

Produces:
Run madrapps/jacoco-report@7a334[25](https://github.com/dexcom-inc/dexcom-udp-api-gateway/actions/runs/3595960200/jobs/6056071309#step:10:26)5fbce42f385d7567c25d986a9c62e2971
Event is pull_request
base sha:  d21b2277671fe0c9b0004136417bd997e7eaf75c
head sha:  d58ad620e37286656e6d99da822e9e570a0b90d5
reportPaths: /runner/_work/dexcom-udp-api-gateway/dexcom-udp-api-gateway/jacocoTestReport.xml
Error: HttpError: Not Found

This exact configuration works for my other repos so I have no idea what's wrong with this one.
I've confirmed the Git Token works.

This was actually an error in the Github token permissioning. It did not have write permission.