** Also affects: zsys (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to zsys in Ubuntu.
https://bugs.launchpad.net/bugs/2022074

Title:
  experiencing races on many arches with golang-go 1.20 in mantic

Status in golang-1.20 package in Ubuntu:
  New
Status in zsys package in Ubuntu:
  New

Bug description:
  # run go generate for only installed generated assets
  go generate 
-ldflags=-X=github.com/ubuntu/zsys/internal/config.Version=0.5.10.1 
--mod=vendor ./...
  writing internalassets_vfsdata.go
  2023/06/01 13:46:13 Error when generating mo files: couldn't compile mo file 
from "../../po/de.po": exit status 1.
  Command output: msgfmt: error while opening 
"/<<PKGBUILDDIR>>/debian/zsys/usr/share/locale/de/LC_MESSAGES/zsys.mo" for 
writing: Not a directory
  exit status 1
  internal/i18n/i18n.go:9: running "go": exit status 1

  Is shocking given it just does this:

        if err := generators.CleanDirectory(baseLocaleDir); err != nil {
                log.Fatalln(err)
        }

  ....
                if err := os.MkdirAll(outDir, 0755); err != nil {
                        return fmt.Errorf("couldn't create %q: %v", out, err)
                }
                if out, err := exec.Command("msgfmt",
                        "--output-file="+filepath.Join(outDir, 
config.TEXTDOMAIN+".mo"),
                        candidate).CombinedOutput(); err != nil {
                        return fmt.Errorf("couldn't compile mo file from %q: 
%v.\nCommand output: %s", candidate, err, out)
                }

  
  meaning it deleted dirs, created dirs, and yet couldn't write to said dir.

  https://github.com/ubuntu/zsys/blob/master/internal/i18n/generate-
  locales.go#L194

  almost as if mkdirall stopped being atomic?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang-1.20/+bug/2022074/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to